public CherryDecorator(BakeryComponent baseComponent) : base(baseComponent)
 {
     _name  = "Cherry";
     _price = 2;
 }
Exemplo n.º 2
0
 public NameCardDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.m_Name  = "Name Card";
     this.m_Price = 4.0;
 }
Exemplo n.º 3
0
 protected Decorator(BakeryComponent baseComponent)
 {
     m_BaseComponent = baseComponent;
 }
Exemplo n.º 4
0
 public CreamDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.m_Name  = "Cream";
     this.m_Price = 1.0;
 }
Exemplo n.º 5
0
 public ArtificialScentDecorator(BakeryComponent baseComponent) : base(baseComponent)
 {
     _name  = "Artificial Scent";
     _price = 3;
 }
Exemplo n.º 6
0
 public NameCardDecorator(BakeryComponent baseComponent) : base(baseComponent)
 {
     _name  = "Name Card";
     _price = 4;
 }
 public ArtificialScentDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.m_Name  = "Artificial Scent";
     this.m_Price = 3.0;
 }
Exemplo n.º 8
0
 static void PrintProductDetails(BakeryComponent bakeryComponent)
 {
     Console.WriteLine("Item: {0}, Price: {1}\n", bakeryComponent.GetName(), bakeryComponent.GetPrice());
 }
Exemplo n.º 9
0
 public CherryDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.m_Name  = "Cherry";
     this.m_Price = 2.0;
 }
Exemplo n.º 10
0
 public CreamDecorator(BakeryComponent baseComponent) : base(baseComponent)
 {
     _name  = "Cream";
     _price = 1;
 }
Exemplo n.º 11
0
 private static void PrintProductDetails(BakeryComponent cBase)
 {
     Console.WriteLine("Item: {0} Price: {1}", cBase.GetName(), cBase.GetPrice());;
 }