Esempio n. 1
0
 public NameCardDecorator(BakeryComponent baseComponent) : base(baseComponent)
 {
     this.m_Name  = "Name Card";
     this.m_Price = 5.0;
 }
Esempio n. 2
0
 public CreamDecorator(BakeryComponent baseComponent) : base(baseComponent)
 {
     this.m_Name  = "Cream";
     this.m_Price = 4.0;
 }
Esempio n. 3
0
 public CherryDecorator(BakeryComponent baseComponent) : base(baseComponent)
 {
     this.m_Name  = "Cherry ";
     this.m_Price = 2.0;
 }
Esempio n. 4
0
 public ArtificalScentDecorator(BakeryComponent baseComponent) : base(baseComponent)
 {
     this.m_Name  = "Aritifical Scent";
     this.m_Price = 3.0;
 }
Esempio n. 5
0
 protected Decorator(BakeryComponent bakeryComponent)
 {
     m_BaseComponent = bakeryComponent;
 }
Esempio n. 6
0
 private static void PrintProductDetails(BakeryComponent product)
 {
     Console.WriteLine(); // some whitespace for readability
     Console.WriteLine("Item: {0}, Price: {1}", product.GetName(), product.GetPrice());
 }