Exemplo n.º 1
0
 private void Account_PreviewMouseUp(object sender, MouseButtonEventArgs e)
 {
     if (UserModel.CurrentUser == null)
     {
         UserNotLoggedInException.ShowGenericMessageBox();
     }
     else
     {
         ChangeContent(new AccountPage());
     }
 }
Exemplo n.º 2
0
 private void LogOut_PreviewMouseUp(object sender, MouseButtonEventArgs e)
 {
     if (UserModel.CurrentUser == null)
     {
         UserNotLoggedInException.ShowGenericMessageBox();
     }
     else
     {
         var loginWindow = new LoginWindow();
         loginWindow.Show();
         UserModel.CurrentUser = null;
         this.Close();
     }
 }