Esempio n. 1
0
 public bool LogoutOk(bool logoutOk)
 {
     if (logoutOk)
     {
         Dispatcher.Invoke(() =>
         {
             MessageBox.Show("Logout OK!");
             _logic.CloseSystem();
             Application.Current.Shutdown();
         });
         return(true);
     }
     Dispatcher.Invoke(() =>
     {
         MessageBox.Show("Logout Fail! - please try again");
     });
     return(false);
 }
Esempio n. 2
0
 private void ExitButton_Click(object sender, RoutedEventArgs e)
 {
     cl.CloseSystem();
     Application.Current.Shutdown();
 }