Exemple #1
0
 public CreamDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.m_Name = "Cream";
     this.m_Price = 1.0;
 }
Exemple #2
0
 public CherryDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.m_Name = "Cherry";
     this.m_Price = 2.0;
 }
Exemple #3
0
 private static void PrintProductDetails(BakeryComponent component)
 {
     Console.WriteLine(component.GetName());
     Console.WriteLine(component.GetPrice());
 }
Exemple #4
0
 public ArtificialScentDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.m_Name = "Artificial Scent";
     this.m_Price = 3.0;
 }
Exemple #5
0
 public NameCardDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.m_Name = "Name Card";
     this.m_Price = 4.0;
 }
Exemple #6
0
 protected Decorator(BakeryComponent baseComponent)
 {
     m_BaseComponent = baseComponent;
 }