예제 #1
0
        //退出
        private void exit(FormClosingEventArgs e)
        {
            ExitWindow exitForm = new ExitWindow();

            if (exitForm.ShowDialog() == DialogResult.OK)
            {
                e.Cancel = false;
            }
            else
            {
                e.Cancel = true;
            }
        }
예제 #2
0
 //退出
 private void exit(FormClosingEventArgs e)
 {
     ExitWindow exitForm = new ExitWindow();
     if (exitForm.ShowDialog() == DialogResult.OK)
         e.Cancel = false;
     else
         e.Cancel = true;
 }