Exemplo n.º 1
0
 protected Command(Barbecuer barbecuer)
 {
     this.receiver = barbecuer;
 }
Exemplo n.º 2
0
 public BakeChikenCommand(Barbecuer barbecure)
     : base(barbecure)
 {
     this.receiver = barbecure;
 }
Exemplo n.º 3
0
 static void Main(string[] args)
 {
     Barbecuer boy = new Barbecuer();
     Command com1 = new BakeChikenCommand(boy);
     Command com2 = new BakeChikenCommand(boy);
     Waiter girl = new Waiter();
     girl.SetOrder(com1);
     girl.SetOrder(com2);
     girl.Execute();
     Console.ReadKey();
 }