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