private void ok_button_Click(object sender, EventArgs e) { if(secretariat_radioButton.Checked) { AddForm addfrm = new AddForm(); this.Hide(); addfrm.Show(); } if( prof_radioButton.Checked) { porfessorForm prof = new porfessorForm(); this.Hide(); prof.Show(); } if(stud_radioButton.Checked) { studentForm stud = new studentForm(); this.Hide(); stud.Show(); } }
private void ok_button_Click(object sender, EventArgs e) { if (secretariat_radioButton.Checked) { AddForm addfrm = new AddForm(); this.Hide(); addfrm.Show(); } if (prof_radioButton.Checked) { porfessorForm prof = new porfessorForm(); this.Hide(); prof.Show(); } if (stud_radioButton.Checked) { studentForm stud = new studentForm(); this.Hide(); stud.Show(); } }