Esempio n. 1
0
 public bool LogoutOk(bool logoutOk)
 {
     if (logoutOk)
     {
         Dispatcher.Invoke(() =>
         {
             MessageBox.Show("Logout OK!");
             WellcomeScreen wellcomeScreen = new WellcomeScreen();
             wellcomeScreen.Show();
             Close();
             Hide();
         });
         return(true);
     }
     Dispatcher.Invoke(() =>
     {
         MessageBox.Show("Logout Fail! - please try again");
     });
     return(false);
 }
Esempio n. 2
0
 private void MainMenuBtton_Click(object sender, RoutedEventArgs e)
 {
     wsScreen.Show();
     this.Hide();
 }