/// <summary> /// Initialises the WizardForm, sets the controller and starts the wizard. /// </summary> /// <param name="control">The WizardControl that this form is showing.</param> public WizardFormVWG(WizardControlVWG control) { if (control == null) { throw new ArgumentNullException("control"); } SetupWizardControl(control); }
private void SetupWizardControl(WizardControlVWG control) { _uxWizardControl = control; _wizardController = control.WizardController; this._uxWizardControl.MessagePosted += _uxWizardControl_MessagePosted; this._uxWizardControl.Finished += this._uxWizardControl_Finished; this._uxWizardControl.StepChanged += this._uxWizardControl_StepChanged; this._uxWizardControl.CancelButton.Click += CancelButton_OnClick; InitializeComponent(); WizardControl.WizardController = _wizardController; ((Form)this).DialogResult = Gizmox.WebGUI.Forms.DialogResult.Cancel; this.Closing += WizardFormGiz_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 WizardFormVWG(WizardControlVWG control) { if (control == null) throw new ArgumentNullException("control"); SetupWizardControl(control); }