Пример #1
0
 public BaconDiscount(SandwichComponent component)
     : base(component)
 {
     _name = "Bacon Discount";
     _price = -.50m;
 }
Пример #2
0
 public Ham(SandwichComponent componet)
     : base(componet)
 {
     _name  = "Ham";
     _price = 2.00m;
 }
Пример #3
0
 public Bacon(SandwichComponent component)
     : base(component)
 {
     _name = "Bacon";
     _price = .50m;
 }
Пример #4
0
 public WheatBread(SandwichComponent component)
     : base(component)
 {
     _name = "Wheat Bread";
     _price = 1.00m;
 }
 public WheatBread(SandwichComponent component)
     : base(component)
 {
     _name  = "Wheat Bread";
     _price = 1.00m;
 }
Пример #6
0
 protected Decorator(SandwichComponent component)
 {
     _component = component;
 }
Пример #7
0
 public Bacon(SandwichComponent component)
     : base(component)
 {
     _name  = "Bacon";
     _price = .50m;
 }
 public BaconDiscount(SandwichComponent component)
     : base(component)
 {
     _name  = "Bacon Discount";
     _price = -.50m;
 }
Пример #9
0
 public Ham(SandwichComponent componet)
     : base(componet)
 {
     _name = "Ham";
     _price = 2.00m;
 }
Пример #10
0
 protected Decorator(SandwichComponent component)
 {
     _component = component;
 }