コード例 #1
0
 /// <summary>
 /// called when either the ok or cancel button has been clicked
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnChange(object sender, EventArgs e)
 {
     if (sender == _uiOk)
     {
         Close();
     }
     else if (sender == _uiCancel)
     {
         if (_deployWorker != null && _deployWorker.IsBusy)
         {
             _deployWorker.Stop();
         }
     }
 }