/// <summary> /// Initialises the WizardForm, sets the controller and starts the wizard. /// </summary> /// <param name="control">The WizardControl that this form is showing.</param> public WizardFormWin(WizardControlWin control) { if (control == null) { throw new ArgumentNullException("control"); } SetupWizardControl(control); }
private void SetupWizardControl(WizardControlWin control) { _uxWizardControl = control; _wizardController = control.WizardController; this._uxWizardControl.MessagePosted += WizardControl_MessagePosted; this._uxWizardControl.Finished += this.WizardControl_Finished; this._uxWizardControl.StepChanged += this.WizardControl_StepChanged; this._uxWizardControl.CancelButton.Click += CancelButton_OnClick; InitializeComponent(); WizardControl.WizardController = _wizardController; DialogResult = Base.DialogResult.Cancel; this.Closing += WizardFormWin_Closing; }
/// <summary> /// Initialises the WizardForm, sets the controller and starts the wizard. /// </summary> /// <param name="control">The WizardControl that this form is showing.</param> public WizardFormWin(WizardControlWin control) { if (control == null) throw new ArgumentNullException("control"); SetupWizardControl(control); }