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