Beispiel #1
0
 private void Wizard1WizardPageChanged(object sender, WizardPageChangeEventArgs e)
 {
     switch (Wizard1.SelectedPageIndex)
     {
         case 0:
             Size = new Size(549, 220);
             break;
         case 1:
             Size = new Size(549, 220);
             break;
         case 2:
             Size = new Size(565, 665);
             break;
         case 3:
             Size = new Size(565, 665);
             break;
         case 4:
             Size = new Size(565, 665);
             break;
         case 5:
             Size = new Size(565, 665);
             break;
         case 6:
             Size = new Size(565, 665);
             break;
         case 7:
             Size = new Size(565, 665);
             break;
         case 8:
             Size = new Size(565, 665);
             break;
         case 9:
             LoadSettings();
             Size = new Size(565, 521);
             break;
         case 10:
             LoadCustomClasses();
             LoadEngines();
             Size = new Size(565, 421);
             break;
     }
 }
        private void wizardPage3_AfterPageDisplayed(object sender, WizardPageChangeEventArgs e)
        {
            this.progressBarX1.Value = 0;

            // 讀取畫面上選取教師狀態

            switch (cboStudStatus.Text)
            {
                case "一般":
                    _StudStatus = K12.Data.TeacherRecord.TeacherStatus.一般;
                    break;

                //case "休學":
                //    _StudStatus = K12.Data.StudentRecord.StudentStatus.休學;
                //    break;
                //case "輟學":
                //    _StudStatus = K12.Data.StudentRecord.StudentStatus.輟學;
                //    break;
                //case "畢業或離校":
                //    _StudStatus = K12.Data.StudentRecord.StudentStatus.畢業或離校;
                //    break;
                case "刪除":
                    _StudStatus = K12.Data.TeacherRecord.TeacherStatus.刪除;
                    break;
            }

            lblWarningCount.Text = lblErrCount.Text = "0";
            this.wizardPage3.FinishButtonEnabled = eWizardButtonState.False;
            linkLabel1.Visible = false;
            labelX2.Text = "資料驗證中";
            linkLabel3.Tag = null;
            linkLabel3.Visible = false;
            Application.DoEvents();

            _BKWValidate = new BackgroundWorker();
            _BKWValidate.WorkerReportsProgress = true;
            _BKWValidate.WorkerSupportsCancellation = true;
            _BKWValidate.DoWork += new DoWorkEventHandler(_BKWValidate_DoWork);
            _BKWValidate.ProgressChanged += new ProgressChangedEventHandler(_BKWValidate_ProgressChanged);
            _BKWValidate.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_BKWValidate_RunWorkerCompleted);

            List<string> fields = new List<string>();
            string fileName = txtFile.Text;
            fields.AddRange(_RequiredFields);
            foreach (ListViewItem item in listView1.Items)
            {
                if (item.Checked)
                    fields.Add(item.Text);
            }
            _ErrorRows = new Dictionary<RowData, Dictionary<string, string>>();
            _WarningRows = new Dictionary<RowData, Dictionary<string, string>>();
            Workbook wb = new Workbook();
            wb.Copy(_WorkBook);
            _BKWValidate.RunWorkerAsync(new object[] { fields, _ImportFields, wb });
        }
 private void wizard1_WizardPageChanged(object sender, WizardPageChangeEventArgs e)
 {
     if (e.NewPage.BackButtonVisible == eWizardButtonState.False)
         cboStudStatus.Enabled = true;
     else
         cboStudStatus.Enabled = false;
     advButton.Visible = (e.NewPage == wizardPage1);
 }
 /// <summary>
 /// Select manfacturer page has been displayed.
 /// </summary>
 private void OnManufacturerSelectionPageDisplayed(object sender, WizardPageChangeEventArgs e)
 {
     cbManufacturer.Focus();
 }
 /// <summary>
 /// Connect over WIFI page has been displayed.
 /// </summary>
 private void OnConnectOverWifiPageDisplayed(object sender, WizardPageChangeEventArgs e)
 {
     switchButtonWifi.Focus();
 }
 /// <summary>
 /// Cannot connect page has been displayed.
 /// </summary>
 private void OnCannotConnectPageDisplayed(object sender, WizardPageChangeEventArgs e)
 {
     tbName.Focus();
 }
 private void wizard1_WizardPageChanged(object sender, WizardPageChangeEventArgs e)
 {
     advButton.Visible = (e.NewPage == wizardPage1);
 }
Beispiel #8
0
 /// <summary>
 /// Invokes the BeforePageDisplayed event.
 /// </summary>
 /// <param name="e">Event arguments</param>
 internal void InvokeAfterPageHidden(WizardPageChangeEventArgs e)
 {
     OnAfterPageHidden(e);
 }
Beispiel #9
0
 /// <summary>
 /// Fires BeforePageDisplayed event.
 /// </summary>
 /// <param name="e">Event arguments</param>
 protected virtual void OnAfterPageHidden(WizardPageChangeEventArgs e)
 {
     if (AfterPageHidden != null)
         AfterPageHidden(this, e);
 }
Beispiel #10
0
 /// <summary>
 /// Invokes AfterPageDisplayed event.
 /// </summary>
 /// <param name="e">Event arguments</param>
 internal void InvokeAfterPageDisplayed(WizardPageChangeEventArgs e)
 {
     OnAfterPageDisplayed(e);
 }
Beispiel #11
0
 /// <summary>
 /// Fires AfterPageDisplayed event.
 /// </summary>
 /// <param name="e">Event arguments.</param>
 protected virtual void OnAfterPageDisplayed(WizardPageChangeEventArgs e)
 {
     if (AfterPageDisplayed != null)
         AfterPageDisplayed(this, e);
 }