/// <summary> /// Constructor /// 依課程規劃表開課。 /// </summary> public CreateCoursesByProgramPlan() { if (EachClassHasProgramPlan() == false) { return; //如果有班級沒有課程規劃,停止開課。 } InitializePreloaderAndResetEvent(); Preloader.RunWorkerAsync(); SelectSemesterForm form = new SelectSemesterForm(); if (form.ShowDialog() != System.Windows.Forms.DialogResult.OK) { return; } Event.WaitOne(); InitializeWorker(); Worker.RunWorkerAsync(form); }