Esempio n. 1
0
 protected Command(Barbecuer barbecuer)
 {
     this.receiver = barbecuer;
 }
Esempio n. 2
0
 public BakeChikenCommand(Barbecuer barbecure)
     : base(barbecure)
 {
     this.receiver = barbecure;
 }
Esempio 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();
 }