public StudentScoreRank(RankProgressForm rankForm, DoWorkEventArgs workArgs) { //排名相關參數,由主畫面選項決定。 _parameters = rankForm.RatingParams; //BackgroundWorker 事件物件。 _work_args = workArgs; //工作進度權重管理物件。 _weights = new JobWeightTable(); //畫面進度回報物件。 _progress = new MainProgress(rankForm.ProgressUI, rankForm.MessageLabel); //要排名的學生集合。 _students = new StudentCollection(); //填入資料的 Adapter 集合。 _adapters = new AdapterCollection(); //是否不儲存,只試排看結果。 _save_required = !rankForm.IsViewMode; }
public void SetProgressUI(IProgressUI progress, JobWeightTable weightTable) { _progress_ui = progress; _weight_table = weightTable; RegisterJobs(); }