Example #1
0
 private void ProcessStepBeforeChange(WizardStep wizardStep, int position)
 {
     wizardStep.OnExit(StepExitCode.ExitNext);
     WizardFlow.SetStepCompleted(position, true);
     StateManager.PersistStepContext(wizardStep);
 }
Example #2
0
 /// <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);
 }
Example #3
0
 /// <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;
 }
Example #4
0
 /// <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));
 }
Example #5
0
 /// <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);
 }