Beispiel #1
0
        // метод, переход в окно авторизации
        private void Login()
        {
            ActiveForm.Hide();
            Login_Window login_Window = new Login_Window();

            login_Window.ShowDialog();
            Close();
        }
Beispiel #2
0
 private void CheckSession()
 {
     BaseController.CurrentUser = null;
     this.Hide();
     _loginWindow = new Login_Window();
     if (_loginWindow.ShowDialog() == true)
     {
         this.Show();
     }
     else
     {
         Close();
         System.Environment.Exit(0);
     }
 }