private void UpdateForm_FormClosing(object sender, FormClosingEventArgs e) { if (this.DialogResult == DialogResult.Cancel) { // Abort any edit that's still running m_Cmd.DialAbort(this); m_Cmd.Cancel(); } }
private void cancelButton_Click(object sender, EventArgs e) { this.DialogResult = DialogResult.Cancel; m_UpdCmd.DialAbort(this); }