Esempio n. 1
0
 private void logInButton_Click(object sender, EventArgs e)
 {
     LogInSystem logInSystem = new LogInSystem();
     if (logInSystem.AreWeIn(loginTextBox.Text, passwrodTextBox.Text))
     {
         AdminPanel adminPanel = new AdminPanel();
         adminPanel.Show();
         this.Close();
     }
     else
     {
         labelForError.Visible = true;
     }
 }
Esempio n. 2
0
 private void updateLoginButton_Click(object sender, EventArgs e)
 {
     LogInSystem logInSystem = new LogInSystem();
     string login = loginTextBox.Text;
     string password = passwordTextBox.Text;
     logInSystem.ChangeLogin(login, password);
 }