public UpdateTeacherWindow(SearchTeacherWindow searchTeacher)
 {
     InitializeComponent();
     this.searchTeacher = searchTeacher;
     frmSearchTeacher.Content = this.searchTeacher;
     this.searchTeacher.SetInitialState();
     this.searchTeacher.SelectedTeacherChange += SelectedTeacherChanged;
 }
 private void btnAssignTeacher_Click(object sender, RoutedEventArgs e)
 {
     if (searchTeacher == null)
     {
         searchTeacher = new SearchTeacherWindow();
     }
     frmAdministratorContent.Content = new AssignTeacherWindow(searchTeacher);
 }
 public AssignTeacherWindow(SearchTeacherWindow searchTeacher)
 {
     InitializeComponent();
     this.searchTeacher = searchTeacher;
     frmSearchWindow.Content = searchTeacher;
 }
 public AddTeacherWindow(SearchTeacherWindow searchTeacher)
 {
     InitializeComponent();
     this.searchTeacher = searchTeacher;
     frmSearchTeacher.Content = this.searchTeacher;
 }