예제 #1
0
        /**
         * Handles closing the form (via the X button).
         */
        protected override void OnFormClosing(FormClosingEventArgs e)
        {
            base.OnFormClosing(e);

            MainFormHandler.ExitHandler();

            if (e.CloseReason == CloseReason.WindowsShutDown)
            {
                return;
            }
        }
예제 #2
0
 /**
  * Handles pressing on the exit button in the menu strip.
  */
 private void ExitToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MainFormHandler.ExitHandler();
 }