public SelectTypeForm(string name, SchoolYearScoreReport.Config config) { this.InitializeComponent(); this.buttonX1.AccessibleRole = AccessibleRole.PushButton; this._config = config; this._preferenceElementName = name; this._BGWAbsenceAndPeriodList = new BackgroundWorker(); this._BGWAbsenceAndPeriodList.DoWork += new DoWorkEventHandler(this._BGWAbsenceAndPeriodList_DoWork); this._BGWAbsenceAndPeriodList.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this._BGWAbsenceAndPeriodList_RunWorkerCompleted); this._BGWAbsenceAndPeriodList.RunWorkerAsync(); }
public SelectSchoolYearForm(SchoolYearScoreReport.Config config) { InitializeComponent(); //string DALMessage = "『"; //foreach (Assembly Assembly in AppDomain.CurrentDomain.GetAssemblies().Where(x => x.GetName().Name.Equals("SchoolYearScoreReportNew"))) // DALMessage += "版本號:" + Assembly.GetName().Version + " "; //DALMessage += "』"; //this.Text += DALMessage; this._config = config; this.numUD.Value = this.Config.SchoolYear; this.buttonX1.AccessibleRole = AccessibleRole.PushButton; this.buttonX2.AccessibleRole = AccessibleRole.PushButton; }