예제 #1
0
 private void btnLogout_Click(object sender, RoutedEventArgs e)
 {
     /*
      * Log the user out and change opacity
      */
     LoginHandler.logout();
     checkOpacity();
     checkEnabled();
 }
예제 #2
0
 private void MenuItem_Click_9(object sender, RoutedEventArgs e)
 {
     if (LoginHandler.loggedIn == true)
     {
         wfhTest.Visibility          = Visibility.Hidden;
         RegistrationGrid.Visibility = Visibility.Visible;
         introLabel.Visibility       = Visibility.Visible;
         string loggingOutUser = LoginHandler.username;
         LoginHandler.logout();
         MessageBox.Show("Logout complete - bye " + loggingOutUser);
     }
     else
     {
         MessageBox.Show("Not logged in");
     }
 }