public void Abort() { button2_Abort.Enabled = false; _operation.Abort(); if (Aborted != null) { Aborted(this, EventArgs.Empty); } }
public void Abort() { abortToolStripButton.Enabled = false; _operation.Abort(); if (Aborted != null) { Aborted(this, EventArgs.Empty); } }
protected override void OnClosed(EventArgs e) { _operation.Abort(); base.OnClosed(e); }