private void MainForm_Load(object sender, EventArgs e) { cbxScoreType.Items.Add("原始成績"); cbxScoreType.Items.Add("原始補考擇優"); cbxScoreType.DropDownStyle = ComboBoxStyle.DropDownList; if (Perference == null) { Perference = new ReportPreference(); } cbxScoreType.Text = Perference.UserSelScoreType; txtReMark.Text = Perference.ReScoreMark; Utilities.SetSemesterDefaultItems(cboSchoolYear, cboSemester); //顯示學年度學期選項。 Semester = new SemesterSelector(cboSchoolYear, cboSemester); Semester.SemesterChanged += new EventHandler(Semester_SemesterChanged); MasterWorker.DoWork += new DoWorkEventHandler(MasterWorker_DoWork); MasterWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(MasterWorker_RunWorkerCompleted); ////報表設定。 //Perference = new ReportPreference(); FillCurrentSemesterData(); }
private void MainForm_Load(object sender, EventArgs e) { Utilities.SetSemesterDefaultItems(cboSchoolYear, cboSemester); //顯示學年度學期選項。 Semester = new SemesterSelector(cboSchoolYear, cboSemester); Semester.SemesterChanged += new EventHandler(Semester_SemesterChanged); MasterWorker.DoWork += new DoWorkEventHandler(MasterWorker_DoWork); MasterWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(MasterWorker_RunWorkerCompleted); //報表設定。 Perference = new ReportPreference(); FillCurrentSemesterData(); }