Пример #1
0
        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();
 }
Пример #3
0
 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();
 }
Пример #4
0
        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();
        }