// TODO: Exercise 4: Task 3c: Enroll a student in the teacher's class private void EnrollStudent_Click(object sender, RoutedEventArgs e) { var dialog = new AssignStudentDialog(); dialog.ShowDialog(); Refresh(); }
// Exercise 4: Task 3c: Enroll a student in the teacher's class private void EnrollStudent_Click(object sender, RoutedEventArgs e) { AssignStudentDialog assignStudentDialog = new AssignStudentDialog(); assignStudentDialog.ShowDialog(); this.Refresh(); }
private void EnrollStudent_Click(object sender, RoutedEventArgs e) { AssignStudentDialog asd = new AssignStudentDialog(); //Bit lost on this one asd.ShowDialog(); Refresh(); }
// Enroll a student in the teacher's class private void EnrollStudent_Click(object sender, RoutedEventArgs e) { // Use the AssignStudentDialog to display unassigned students and add them to the teacher's class // All of the work is performed in the code behind the dialog AssignStudentDialog asd = new AssignStudentDialog(); asd.ShowDialog(); // Refresh the display to show any newly enrolled students Refresh(); }