private void button2_Click(object sender, EventArgs e) { this.Close(); AuthPage auth = new AuthPage(); auth.Show(); }
private void button1_Click(object sender, EventArgs e) { //need to add pass change in DB this.Close(); AuthPage auth = new AuthPage(); auth.Show(); }
private void loginBtn_Click(object sender, EventArgs e) { string user = loginTxtbx.Text; string pass = passwordTxtbx.Text; int isInBase = IsInBase(user, pass); if (isInBase > 0) { MessageBox.Show($"Здравствуй {GetName(isInBase)}"); AuthPage auth = new AuthPage(); auth.Show(); this.Hide(); } else { MessageBox.Show("Неверный ввод!"); } }