Exemplo n.º 1
0
 void onMd5File(Queue <DownloadConfig> DownloadList)
 {
     if (DownloadList.Count > 0)
     {
         downloadCount  = DownloadList.Count;
         isWriteMd5File = true;
         thread         = new ThreadDownload(DownloadList);
         thread.Start();
     }
     else
     {
         Ready();
     }
 }
Exemplo n.º 2
0
 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();
     }
 }
Exemplo n.º 3
0
 private void OnDestroy()
 {
     if (_isWriteMd5File)
     {
         _checkForUpdate.WriteToLocalFile(_module);
     }
     if (_thread != null)
     {
         _thread.Stop();
     }
     _checkForUpdate = null;
     _thread         = null;
     _downloadList   = null;
     _table          = null;
 }