internal static void CloseApp()
 {
     MessageBox.Show("ShutDown");
     DataStorage.Save();
     StopThreads?.Invoke();
     Environment.Exit(1);
 }
Example #2
0
 internal static void CloseApp()
 {
     StationManager.DataStorage.ChangeUser(CurrentLocalUser);
     StationManager.DataStorage.SaveCurrentUser();
     MessageBox.Show("ShutDown");
     StopThreads?.Invoke();
     Environment.Exit(1);
 }
 public static void InvokeStopThreads()
 {
     try
     {
         StopThreads?.Invoke();
     }
     catch {}
 }
Example #4
0
 internal static void CloseApp()
 {
     MessageBox.Show("Stop");
     try
     {
         StopThreads?.Invoke();
     }
     catch
     {
     }
     Environment.Exit(1);
 }
Example #5
0
 protected override void OnClosing(CancelEventArgs e)
 {
     base.OnClosing(e);
     StopThreads?.Invoke();
     Environment.Exit(0);
 }
 internal static void CloseApp()
 {
     //MessageBox.Show("Shutting Down");
     StopThreads?.Invoke();
     Environment.Exit(1);
 }
Example #7
0
 internal static void CloseApp()
 {
     StopThreads?.Invoke();
     Environment.Exit(1);
 }
Example #8
0
 internal static void CloseApp()
 {
     MessageBox.Show("Closing app");
     StopThreads?.Invoke();
     Environment.Exit(1);
 }
 public static void StopAllThreads()
 {
     StopThreads?.Invoke();
 }
Example #10
0
 internal static void CloseApp()
 {
     DataStorage.SaveChanges();
     StopThreads?.Invoke();
     Environment.Exit(1);
 }
Example #11
0
 internal static void CloseApp()
 {
     MessageBox.Show("YOU ARE GOING TO CLOSE THE APP");
     StopThreads?.Invoke();
     Environment.Exit(1);
 }