ArcGISCompare.frmMaster.mnuExit_Click C# (CSharp) Method

mnuExit_Click() private method

private mnuExit_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void mnuExit_Click(object sender, EventArgs e)
        {
            System.Windows.Forms.Form frmSave = new dlgSave();
            if (hasChanged)
            {
                DialogResult theAns = frmSave.ShowDialog(this);

                if (theAns == DialogResult.No) { return; }
                if (theAns == DialogResult.Yes) { mnuSaveMappings_Click(sender, e); }
            }
            this.Close();
        }