public virtual void Next(out ViewBase newView, out WizardBase.WizardState wizardState) { if (state < lastState) { SwitchToState(state + 1, out newView, out wizardState); } else { throw new Exception("GenericController.Next: Step over last state."); } }
public virtual void Back(out ViewBase newView, out WizardBase.WizardState wizardState) { if (state > 0) { SwitchToState(state - 1, out newView, out wizardState); } else { throw new Exception("GenericController.Next: Step behind first state."); } }
public void OnInit(out ViewBase newView, out WizardBase.WizardState wizardState) { SwitchToState(0, out newView, out wizardState); }