Beispiel #1
0
        private void buttonAut_Click(object sender, EventArgs e)
        {
            Form formAutorization = new FormAutorization();

            formAutorization.Show();
            this.Hide();
        }
Beispiel #2
0
        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();
        }