private void cancelButton_Click(object sender, EventArgs e) { // If we are showing adjustment results, get rid of them if (m_Adjustment != null) { m_Adjustment.Dispose(); m_Adjustment = null; } // Tell the command that's running this dialog that we're done if (m_Command != null) { m_Command.DialAbort(this); } }