private void checkRememberUser()
 {
     foreach (User user in userList)
     {
         if (user.RememberMe)
         {
             LoginedUser.getInstance().UserGetSet = user;
             this.Hide();
             if (logOut.ShowDialog() == DialogResult.Cancel && LoginedUser.getInstance().UserGetSet.RememberMe == true)
             {
                 System.Environment.Exit(1);
             }
         }
     }
 }
Пример #2
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            this.Hide();
            LogOut logOut = new LogOut();

            logOut.ShowDialog();
            this.Close();
        }