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; } }
private void updateLoginButton_Click(object sender, EventArgs e) { LogInSystem logInSystem = new LogInSystem(); string login = loginTextBox.Text; string password = passwordTextBox.Text; logInSystem.ChangeLogin(login, password); }