private void OnReceiveExit(object sender, ForceQuit e) { if (e.Quit == 1) { Box.Show("How was Your Day Today. . .??", "Notice", 7950); Dispose(); Environment.Exit(0); } }
private void OnReceiveExit(object sender, ForceQuit e) { if (e.Quit == 1) { Dispose(); Environment.Exit(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(); } }
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); } }
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(); } }
private void OnReceiveExit(object sender, ForceQuit e) { SendQuit?.Invoke(this, new ForceQuit(1)); }