Exemple #1
0
 /// <summary>
 /// 文件下载完成
 /// </summary>
 /// <param name="err"></param>
 /// <param name="fn"></param>
 private void DownloadDone(string err, string fn)
 {
     if (CheckVersion.CheckDownloadFn(fn))
     {
         CheckVersion.OnDownloadCompleted(err, fn);
     }
     else if (CheckMd5.CheckDownloadFn(fn))
     {
         CheckMd5.OnDownloadCompleted(err, fn);
     }
     else
     {
         DownloadRes.OnDownloadCompleted(err, fn);
     }
 }
Exemple #2
0
        private void DownloadDone(Exception err, string fn)
        {
            switch (fn)
            {
            case CheckVersionState.res_version_latest:
                CheckVersion.OnDownloadCompleted(err);
                break;

            case CheckMd5State.res_md5_latest:
                CheckMd5.OnDownloadCompleted(err);
                break;

            default:
                DownloadRes.OnDownloadCompleted(err, fn);
                break;
            }
        }