Esempio n. 1
0
 /// <summary>
 /// Cancel button was clicked.
 /// </summary>
 private void OnCancelClick(object sender, EventArgs e)
 {
     Launcher.CancelLaunch();
     closing = true;
     Cancel.Fire(this);
     Close();
 }
Esempio n. 2
0
 /// <summary>
 /// Fire the cancel event.
 /// </summary>
 protected virtual void OnCancel()
 {
     try
     {
         if (worker.IsBusy)
         {
             worker.CancelAsync();
         }
     }
     catch
     {
         // Ignore
     }
     try
     {
         Cancel.Fire(this);
     }
     catch (Exception ex)
     {
         ErrorLog.DumpError(ex);
     }
 }
Esempio n. 3
0
 private void cmdCancel_Click(object sender, EventArgs e)
 {
     Cancel.Fire(this);
 }
 /// <summary>
 /// Cancel this control
 /// </summary>
 private void OnCancelClick(object sender, EventArgs e)
 {
     cancelTokenSource.Cancel();
     Cancel.Fire(this);
 }