private void ProcessStepBeforeChange(WizardStep wizardStep, int position) { wizardStep.OnExit(StepExitCode.ExitNext); WizardFlow.SetStepCompleted(position, true); StateManager.PersistStepContext(wizardStep); }
/// <summary> /// Add a step to the WizardFlow. Note that the wizard flow is determined by the order of added steps. /// </summary> /// <param name="stepClass"></param> /// /// <param name="isRequired">Determine if the step is required before advancing to the next step</param> /// <returns></returns> public Builder AddStep(WizardStep stepClass, bool isRequired) { WizardSteps.Add(new StepMetaData(isRequired, stepClass)); return(this); }
/// <summary> /// Add a step to the WizardFlow. Note that the wizard flow is determined by the order of added steps. /// </summary> /// <param name="stepClass"></param> /// /// <param name="isRequired">Determine if the step is required before advancing to the next step</param> /// <returns></returns> public Builder AddStep(WizardStep stepClass, bool isRequired) { WizardSteps.Add(new StepMetaData(isRequired, stepClass)); return this; }
/// <summary> /// Add a step to the WizardFlow. Note that the wizard flow is determined by the order of added steps. /// </summary> /// <param name="stepClass"></param> /// <returns></returns> public Builder AddStep(WizardStep stepClass) { return(AddStep(stepClass, false)); }
/// <summary> /// Add a step to the WizardFlow. Note that the wizard flow is determined by the order of added steps. /// </summary> /// <param name="stepClass"></param> /// <returns></returns> public Builder AddStep(WizardStep stepClass) { return AddStep(stepClass, false); }