Esempio n. 1
0
 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.");
     }
 }
Esempio n. 2
0
 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.");
     }
 }
Esempio n. 3
0
 public void OnInit(out ViewBase newView, out WizardBase.WizardState wizardState)
 {
     SwitchToState(0, out newView, out wizardState);
 }