private void ButtonLogin_Click(object sender, EventArgs e)
 {
     if (radioButtonAdmin.Checked)
     {
         AdminForm adminForm = new AdminForm();
         adminForm.ShowDialog();
     }
     if (radioButtonUser.Checked)
     {
         RegistrationForm regForm = new RegistrationForm();
         regForm.ShowDialog();
     }
 }
 private void RadioButtun_State(object sender, EventArgs e)
 {
     if (radioButtonAdmin.Checked)
     {
         adminForm.ShowDialog();
     }
     else if (radioButtonUser.Checked)
     {
     }
     else
     {
         MessageBox.Show("Please select user type!");
     }
 }
Example #3
0
 private void ButtonLogin_Click(object sender, EventArgs e)
 {
     adminForm.ShowDialog();
 }