예제 #1
0
        private void Form_secretaryStudentCoursesReport_FormClosed(object sender, FormClosedEventArgs e)
        {
            Form_secretaryManageStudent parent = (Form_secretaryManageStudent)this.Owner;

            parent.UpdateCoursesDataGridView();
            parent.Show();
        }
예제 #2
0
 private void manageCourseButton_Click(object sender, EventArgs e)
 {
     if (studentsResultListBox.SelectedItem == null)
     {
         MessageBox.Show("No Student selected!"); return;
     }
     selectedStudent = (Student)studentsResultListBox.SelectedItem;
     using (Form_secretaryManageStudent manageStudentCourses = new Form_secretaryManageStudent(selectedStudent))
     {
         this.Hide();
         manageStudentCourses.ShowDialog(this);
     }
 }