private void Start() { DownloadFileList.AsParallel().ForAll(t => { t.StartDownload(); }); }
private void Pause() { DownloadFileList.AsParallel().ForAll(t => { t.PauseDownload(); }); }
private void timer_Tick(object sender, EventArgs e) { double speed = 0; DownloadFileList.AsParallel().ForAll(t => { t.InitSpeed(interval); speed += t.Speed; }); this.Speed = speed; }