private void btnAddInstructor_Click(object sender, RoutedEventArgs e) { var window = new InstructorCRUD(new Instructor(), WindowType.NewEntity); window.InstructorChangesMade += InstructorAdded; window.Show(); }
private void btnEditInstructor_Click(object sender, RoutedEventArgs e) { Instructor selected = lboxInstructors.SelectedItem as Instructor; var window = new InstructorCRUD(selected, WindowType.EditEntity); window.InstructorChangesMade += InstructorEdited; window.Show(); }