示例#1
0
 private void OnReceiveExit(object sender, ForceQuit e)
 {
     if (e.Quit == 1)
     {
         Box.Show("How was Your Day Today. . .??", "Notice", 7950);
         Dispose();
         Environment.Exit(0);
     }
 }
示例#2
0
        private void OnReceiveExit(object sender, ForceQuit e)
        {
            if (e.Quit == 1)
            {
                Dispose();

                Environment.Exit(0);
            }
        }
示例#3
0
 private void OnReceiveDialogClose(object sender, ForceQuit e)
 {
     try
     {
         Close();
     }
     catch (Exception ex)
     {
         Box.Show(string.Concat(ex.ToString(), "\n\nQuit the Program."), "Exception", 3750);
         Application.Restart();
     }
 }
示例#4
0
 private void OnReceiveDialogClose(object sender, ForceQuit e)
 {
     try
     {
         Close();
     }
     catch (Exception ex)
     {
         Box.Show(string.Concat(ex.ToString(), "\n\nQuit the Program."), "Exception", 3750);
         Dispose();
         Environment.Exit(0);
     }
 }
示例#5
0
 private void OnReceiveDialogClose(object sender, ForceQuit e)
 {
     try
     {
         SuspendLayout();
         GetControls(new GoblinBat());
         Application.DoEvents();
     }
     catch (Exception ex)
     {
         MessageBox.Show(string.Concat(ex.ToString(), "\n\nQuit the Program."), "Exception", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         Application.Restart();
     }
 }
示例#6
0
 private void OnReceiveExit(object sender, ForceQuit e)
 {
     SendQuit?.Invoke(this, new ForceQuit(1));
 }