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