Beispiel #1
0
 public override void Previous(Wizard c)
 {
     Console.WriteLine("Switching from Third step to Second step");
     c.SetCurrentStep(new SecondState());
 }
 public override void Previous(Wizard c)
 {
     Console.WriteLine("Switching  from Second to First step");
     c.SetCurrentStep(new FirstStep());
 }
Beispiel #3
0
 public override void Next(Wizard c)
 {
     Console.WriteLine("Swithcing from First Step to Second Step");
     c.SetCurrentStep(new SecondState());
 }
 public override void Next(Wizard c)
 {
     Console.WriteLine("Switching from Second step to third step");
     c.SetCurrentStep(new ThirdState());
 }