int IList.Add(object value) { WizardStepBase stepAndVerify = GetStepAndVerify(value); stepAndVerify.PreventAutoID(); this.Add(stepAndVerify); return(this.IndexOf(stepAndVerify)); }
public void AddAt(int index, WizardStepBase wizardStep) { if (wizardStep == null) { throw new ArgumentNullException("wizardStep"); } RemoveIfAlreadyExistsInWizard(wizardStep); wizardStep.PreventAutoID(); wizardStep.Owner = this._wizard; this.Views.AddAt(index, wizardStep); this.AddTemplatedWizardStep(wizardStep); this.NotifyWizardStepsChanged(); }
public void AddAt(int index, WizardStepBase wizardStep) { if (wizardStep == null) { throw new ArgumentNullException("wizardStep"); } RemoveIfAlreadyExistsInWizard(wizardStep); wizardStep.PreventAutoID(); wizardStep.Owner = this._wizard; this.Views.AddAt(index, wizardStep); this.AddTemplatedWizardStep(wizardStep); this.NotifyWizardStepsChanged(); }
public void Add(WizardStepBase wizardStep) { // if (wizardStep == null) { throw new ArgumentNullException("wizardStep"); } wizardStep.PreventAutoID(); RemoveIfAlreadyExistsInWizard(wizardStep); wizardStep.Owner = _wizard; Views.Add(wizardStep); AddTemplatedWizardStep(wizardStep); NotifyWizardStepsChanged(); }