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();
        }
Esempio n. 4
0
        /// <summary>
        /// logout execute
        /// </summary>
        private void LogOutExecute()
        {
            LogInView log = new LogInView();

            log.Show();
            managerView.Close();
        }
Esempio n. 5
0
        private void LogoutExecute()
        {
            LoginView logout = new LoginView();

            view.Close();
            logout.Show();
        }
Esempio n. 6
0
        public void LogoutExecute()
        {
            MessageBoxResult result = MessageBox.Show("Are you sure?", "Confirmation", MessageBoxButton.YesNo, MessageBoxImage.Question);

            if (result == MessageBoxResult.Yes)
            {
                managerView.Close();
            }
        }
Esempio n. 7
0
        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());
            }
        }