protected override void ExitExecute()
        {
            MainWindow loginWindow = new MainWindow();

            managerView.Close();
            loginWindow.Show();
        }
コード例 #2
0
 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());
     }
 }
コード例 #3
0
        private void LogoutExecute()
        {
            MainWindow logout = new MainWindow();

            mv.Close();
            logout.Show();
        }
コード例 #4
0
        /// <summary>
        /// logout execute
        /// </summary>
        private void LogOutExecute()
        {
            LogInView log = new LogInView();

            log.Show();
            managerView.Close();
        }
コード例 #5
0
        private void LogoutExecute()
        {
            LoginView logout = new LoginView();

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

            if (result == MessageBoxResult.Yes)
            {
                managerView.Close();
            }
        }
コード例 #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());
            }
        }