示例#1
0
 public override void Continue()
 {
     NextState = new InTranzitState(product_on_the_way.product);
     Console.WriteLine("Product is now in custody of courier");
     product_on_the_way.ContinueToNextState(NextState);
 }
示例#2
0
 internal void ContinueToNextState(AbstractDeliveryState NextState)
 {
     product_state = NextState;
     product_state.Continue();
 }
示例#3
0
 public override void Continue()
 {
     NextState = new DelieveredState(product_on_the_way.product);
     Console.WriteLine("Product has been delivered to client");
     product_on_the_way.ContinueToNextState(NextState);
 }
示例#4
0
 public override void Continue()
 {
     NextState = new InTranzitState(product_on_the_way.product);
     Console.WriteLine("Product is now in custody of courier");
     product_on_the_way.ContinueToNextState(NextState);
 }
示例#5
0
 public override void Continue()
 {
     NextState = new DelieveredState(product_on_the_way.product);
     Console.WriteLine("Product has been delivered to client");
     product_on_the_way.ContinueToNextState(NextState);
 }
示例#6
0
 internal void ContinueToNextState(AbstractDeliveryState NextState)
 {
     product_state = NextState;
     product_state.Continue();
 }