示例#1
0
 private void OnTaskComplete(object sender, CompleteEventArgs e)
 {
     if (this.InvokeRequired)
     {
         this.Invoke(new CompleteEventHandler(OnTaskComplete), new object[] { sender, e });
     }
     else
     {
         progressBar.Position = 0;
     }
 }
示例#2
0
 private void OnAllComplete(object sender, CompleteEventArgs e)
 {
     if (this.InvokeRequired)
     {
         this.Invoke(new CompleteEventHandler(OnAllComplete), new object[] { sender, e });
     }
     else
     {
         _CanClose = true;
         enableControls(true);
         progressBarAll.Position = 0;
         if (e.Success)
             _BeenRunSuccessfully = true;
     }
 }