Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
 private void cancelButton_Click(object sender, EventArgs e)
 {
     this.DialogResult = DialogResult.Cancel;
     m_UpdCmd.DialAbort(this);
 }