/// <summary> /// Initializes a new instance of the <see cref="TeacherHomePAge" /> class. /// </summary> /// <param name="teacherId">The teacher identifier.</param> public TeacherHomePAge() { this.InitializeComponent(); this.controller = new TeacherHomePageController(this); this.controller.populateComboBoxes(); }
/// <summary> /// Grade page constructor /// </summary> /// <param name="homePageController">the programs homePageController</param> /// <precondition> /// homePageController != null /// </precondition> public GradePage(TeacherHomePageController homePageController) { if (homePageController == null) { throw new ArgumentException("homePageController cannot be null"); } this.InitializeComponent(); this.gradePageController = new GradePageController(this); this.homePageController = homePageController; this.CRN = this.homePageController.currentCrn; this.gradePageController.PopulateStudentCombo(); this.gradePageController.SetGradeInfo(); this.changesMade = false; }