private void FormExamSubject_Load(object sender, EventArgs e) { //if (Site.DesignMode) return; RatingUtils.DisableControls(this); RatingUtils.SetSemesterDefaultItems(cboSchoolYear, cboSemester); RatingUtils.SetExamDefaultItems(cboExam); Sems = new SemesterSelector(cboSchoolYear, cboSemester); Sems.SemesterChanged += new EventHandler(Sems_SemesterChanged); IncludeQuery = new AEIncludeQuery(); if (cboExam.Items.Count > 0) { cboExam.SelectedIndex = 0; } RatingUtils.EnableControls(this); }
private void FormExamSubject_Load(object sender, EventArgs e) { //if (Site.DesignMode) return; RatingUtils.DisableControls(this); RatingUtils.SetSemesterDefaultItems(cboSchoolYear, cboSemester); RatingUtils.SetExamDefaultItems(cboExam); Sems = new SemesterSelector(cboSchoolYear, cboSemester); Sems.SemesterChanged += new EventHandler(Sems_SemesterChanged); FillDomainOptions(); FillCurrentSemesterData(); //準備目前學年度學期需要的資料。 if (cboExam.Items.Count > 0) { cboExam.SelectedIndex = 0; } RatingUtils.EnableControls(this); }