01.
public
void
Start()
02.
{
03.
if
(
string
.IsNullOrEmpty(DirectoryLoad))
04.
{ MessageBox.Show(
"Error:DirectoryLoad Empty"
);
return
; }
05.
06.
if
(_listLink.Count <= 0)
07.
{ MessageBox.Show(
"Error:_listLink.Count <= 0"
);
return
; }
08.
09.
this
.Invoke(
new
Action(() => {
this
.Maximum += _listLink.Count; }));
10.
Task.Run(() =>
11.
{
12.
_listLink.ForEach(url =>
13.
{
14.
Downloader d =
new
Downloader(url, DirectoryLoad, pattern_Title, pattern_Link, Replaces);
15.
16.
d.Start();
17.
18.
});
19.
20.
});
21.
}
22.
}