Esempio n. 1
0
 private void ProcessStepBeforeChange(WizardStep wizardStep, int position)
 {
     wizardStep.OnExit(StepExitCode.ExitNext);
     WizardFlow.SetStepCompleted(position, true);
     StateManager.PersistStepContext(wizardStep);
 }
Esempio n. 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);
 }
Esempio n. 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;
 }
Esempio n. 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));
 }
Esempio n. 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);
 }