private void buttonAut_Click(object sender, EventArgs e) { Form formAutorization = new FormAutorization(); formAutorization.Show(); this.Hide(); }
private void buttonOK_Click(object sender, EventArgs e) { Users users = new Users(); users.Login = textBoxLogin.Text; users.Password = textBoxPassword.Text; users.Type = comboBoxType.Text; Program.phrDb.Users.Add(users); Program.phrDb.SaveChanges(); Form formAutorization = new FormAutorization(); formAutorization.Show(); this.Hide(); }