Exemple #1
0
 void convertWorker_OnFinish(object sender, WorkerEventArgs e)
 {
     if (workerId != e.Id)
     {
         return;
     }
     isFinished = true;
     SetBusy(false);
     isClosing         = false;
     buttonCancel.Text = "Cancel";
 }
 private void SafeSendFinished(object sender, WorkerEventArgs e)
 {
     try
     {
         if (OnFinish != null)
         {
             OnFinish(this, e);
         }
     }
     catch
     {
     }
 }
 private void SafeSendStarted(object sender, WorkerEventArgs e)
 {
     try
     {
         if (OnStarted != null)
         {
             OnStarted(this, e);
         }
     }
     catch
     {
     }
 }