Exemple #1
0
 private void Checker_AsyncCheckProgress(IMD5Checker sender, AsyncCheckEventArgs e)
 {
     if (e.State == AsyncCheckState.Checking)
     {
         double pro = Convert.ToDouble(e.Value);
         if (pro - sender.Progress < 1)
         {
             return;
         }
         sender.Progress = pro;
         FileListItem control = uploadList.Where(q => q.ID.Equals(sender.ID)).FirstOrDefault();
         if (control == null)
         {
             return;
         }
         SetFileItemMsg(control, "校验文件中,进度:" + pro + "%");
     }
     else
     {
         ServerMD5Check(sender.ID, e.Value);
     }
 }
Exemple #2
0
 private void MD5Checker_AsyncCheckProgress(AsyncCheckEventArgs e)
 {
     AsyncCheckProgress?.Invoke(this, e);
 }