void onMd5File(Queue <DownloadConfig> DownloadList) { if (DownloadList.Count > 0) { downloadCount = DownloadList.Count; isWriteMd5File = true; thread = new ThreadDownload(DownloadList); thread.Start(); } else { Ready(); } }
public void Download(string module, Queue <DownloadConfig> list, CheckForUpdate checkForUpdate, DownloadModuleTable table) { _table = table; _downloadList = list; _module = module; _checkForUpdate = checkForUpdate; if (_downloadList.Count > 0) { _downloadCount = _downloadList.Count; _isWriteMd5File = true; _thread = new ThreadDownload(_downloadList); _thread.Start(); } }