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