Esempio n. 1
0
 public void setDataUser(string _login)
 {
     user.CheckRegistr(_login, "random");
     textBoxLogin.Text    = user.getLogin();
     textBoxPassword.Text = user.getPassword();
     userEdit             = user.getLogin();
 }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Users2 user = new Users2();

            if (user.Login(LoginBox.Text, PasswordBox.Text))
            {
                Messeger newFormMessenger = new Messeger();
                newFormMessenger.setUser(user.getLogin(), user.getPassword(), user.getAdmin());
                newFormMessenger.checkAdmin();
                this.Hide();
                newFormMessenger.Show();
            }
        }