protected override void ExitExecute() { MainWindow loginWindow = new MainWindow(); managerView.Close(); loginWindow.Show(); }
public void LogOutExecute() { try { MainWindow main = new MainWindow(); main.Show(); managerView.Close(); MessageBox.Show("You have successfully logged out"); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void LogoutExecute() { MainWindow logout = new MainWindow(); mv.Close(); logout.Show(); }
/// <summary> /// logout execute /// </summary> private void LogOutExecute() { LogInView log = new LogInView(); log.Show(); managerView.Close(); }
private void LogoutExecute() { LoginView logout = new LoginView(); view.Close(); logout.Show(); }
public void LogoutExecute() { MessageBoxResult result = MessageBox.Show("Are you sure?", "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Question); if (result == MessageBoxResult.Yes) { managerView.Close(); } }
public void Logout() { try { MessageBoxResult result = MessageBox.Show("Are you sure you want to logout?", "Confirmation", MessageBoxButton.OKCancel); switch (result) { case MessageBoxResult.OK: LoginView loginView = new LoginView(); Thread.Sleep(1000); managerView.Close(); loginView.Show(); return; case MessageBoxResult.Cancel: break; } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }