예제 #1
0
 private void buttonCancel_Click(object sender, EventArgs e)
 {
     if (_optimizer.IsBusy)
     {
         _optimizer.CancelAsync();
     }
 }
예제 #2
0
 private void buttonCancel_Click(object sender, EventArgs e)
 {
     if (currentOperation != AsyncOperation.None && _optimizer.IsBusy)
     {
         _optimizer.CancelAsync();
     }
 }