Esempio n. 1
0
        //退出
        private void exit(FormClosingEventArgs e)
        {
            ExitWindow exitForm = new ExitWindow();

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

            if (exitForm.ShowDialog() == DialogResult.OK)
            {
                if (Server != null)
                {
                    Server.Stop();
                }
                if (udp_Server != null)
                {
                    udp_Server.Stop();
                }
                e.Cancel = false;
            }
            else
            {
                e.Cancel = true;
            }
        }
Esempio n. 3
0
 //退出
 private void exit(FormClosingEventArgs e)
 {
     ExitWindow exitForm = new ExitWindow();
     if (exitForm.ShowDialog() == DialogResult.OK)
         e.Cancel = false;
     else
         e.Cancel = true;
 }
Esempio n. 4
0
 //退出
 private void exit(FormClosingEventArgs e)
 {
     ExitWindow exitForm = new ExitWindow();
     if (exitForm.ShowDialog() == DialogResult.OK)
     {
         if (Server != null)
         {
             Server.Stop();
         }
         if (udp_Server != null)
         {
             udp_Server.Stop();
         }
         e.Cancel = false;
     }
     else
         e.Cancel = true;
 }