private void btnAddNewItem_Click(object sender, EventArgs e) { if (rbInstructor.Checked == true) { var instructorAddForm = new InstructorAdd(); instructorAddForm.ShowDialog(); } else if (rbSubject.Checked == true) { var subjectAddForm = new SubjectAdd(); subjectAddForm.ShowDialog(); } else if (rbNewGroup.Checked == true) { var groupAddForm = new GroupAdd(); groupAddForm.ShowDialog(); } else if (rbNewMeeting.Checked == true) { var meetingAddForm = new MeetingAdd(); meetingAddForm.ShowDialog(); } else if (rbSubToSubType.Checked == true) { var subToSubTypeAddForm = new SubToSubTypeAdd(); subToSubTypeAddForm.ShowDialog(); } else if (rbInsToSub.Checked == true) { var insSubAddForm = new InsSubAdd(); insSubAddForm.ShowDialog(); } }
private void bttAddGroup_Click(object sender, EventArgs e) { GroupAdd groupAdd = new GroupAdd(); groupAdd.ShowDialog(); }