コード例 #1
0
 public void WizardEvent(WizardEventArgs WizardEventArgs)
 {
     switch (WizardEventArgs.EventType)
     {
     case EventType.Init:
         mWizard = (AddEnvironmentWizard)WizardEventArgs.Wizard;
         xNameTextBox.BindControl(mWizard.NewEnvironment, nameof(ProjEnvironment.Name));
         xNameTextBox.AddValidationRule(new EnvironemntNameValidationRule());
         xEnvTagsViewer.Init(mWizard.NewEnvironment.Tags);
         xNameTextBox.Focus();
         break;
         //case EventType.Active:
         //    // SetNextBtn();
         //    // WizardEventArgs.IgnoreDefaultNextButtonSettings = true;
         //    //mWizard.FinishEnabled = false;
         //    break;
         //case EventType.Finish:
         //    //avoid keeping the form in memory ?? FIXME
         //    // mWizard.NewEnvironment.PropertyChanged -= NewEnvironment_PropertyChanged;
         //    break;
     }
 }