public NameCardDecorator(BakeryComponent baseComponent) : base(baseComponent) { m_Name = "Name Card"; m_Price = 4.0; }
protected Decorator(BakeryComponent baseComponent) { _baseComponent = baseComponent; }
public CreamDecorator(BakeryComponent baseComponent) : base(baseComponent) { Name = "Cream"; Price = 1.0; }
public CreamDecorator(BakeryComponent component) : base(component) { this.name = "Cream"; this.price = 1.0; }
protected Decorator(BakeryComponent component) { this.baseComponent = component; }
static void PrintProductDetails(BakeryComponent product) { Console.WriteLine(); Console.WriteLine($"Item: {product.Name}, Price: {product.Price}"); }
public CherryDecorator(BakeryComponent component) : base(component) { this.name = "Cherry"; this.price = 2.0; }
public CreamDecorator(BakeryComponent baseComponent) : base(baseComponent) { this.DecoratorName = "Cream"; this.Price = 1.0; }
public ArtificialScentDecorator(BakeryComponent baseComponent) : base(baseComponent) { this.m_Name = "Artificial Scent"; this.m_Price = 3.0; }
public ArtificialScentDecorator(BakeryComponent baseComponent) : base(baseComponent) { this.name = "Artificial Scent"; this.price = 3.0; }
protected Decorator(BakeryComponent baseComponent) { m_BaseComponent = baseComponent; }
public NameCardDecorator(BakeryComponent baseComponent) : base(baseComponent) { this.m_Name = "Name Card"; this.m_Price = 4.0; }
public CreamDecorator(BakeryComponent baseComponent) : base(baseComponent) { this.m_Name = "Cream"; this.m_Price = 1.0; }
public ArtificialScentDecorator(BakeryComponent baseComponent) : base(baseComponent) { Name = "Artificial Scent"; Price = 3.0; }
public CherryDecorator(BakeryComponent mBakeryComponent) : base(mBakeryComponent) { this.m_Name = "Cherry"; this.m_Price = 12.00; }
public CherryDecorator(BakeryComponent baseComponent) : base(baseComponent) { this.m_Name = "Cherry"; this.m_Price = 2.0; }
protected Decorator(BakeryComponent component) { Component = component; }
BakeryComponent bakeryComponent; // a takze zawiera w sobie Bakery Component public RaspberriesDecorator(BakeryComponent b) { this.bakeryComponent = b; }
public CreamDecorator(BakeryComponent component) : base(component) { NameAdditional = "Creame"; PriceAdditional = 1.0; }
protected Decorator(BakeryComponent mBakeryComponent) { _component = mBakeryComponent; }
public NameCardDecorator(BakeryComponent component) : base(component) { this.name = "Name Card"; this.price = 4.0; }
private static void PrintProductDetails(BakeryComponent product) { Console.WriteLine(); // some whitespace for readability Console.WriteLine("Item: {0}, Price: {1}", product.GetName(), product.GetPrice()); }
private static void PrintProductDetails(BakeryComponent bakeryComponent) { Console.WriteLine(string.Format("Item: {0} --> Price: {1}", bakeryComponent.GetName(), bakeryComponent.GetPrice())); }
public ArtificialScentDecorator(BakeryComponent component) : base(component) { NameAdditional = "Artificial Scent"; PriceAdditional = 3.0; }
public NameCardDecorator(BakeryComponent component) : base(component) { NameAdditional = "Name Card"; PriceAdditional = 4.0; }
public CherryDecorator(BakeryComponent baseComponent) : base(baseComponent) { this.DecoratorName = "Cherry"; this.Price = 2.0; }
public CherryDecorator(BakeryComponent baseComponent) : base(baseComponent) { Name = "Cherry"; Price = 2; }
public ArtificialScentDecorator(BakeryComponent component) : base(component) { this.name = "Artificial Scent"; this.price = 3.0; }
public CreamDecorator(BakeryComponent mBakeryComponent) : base(mBakeryComponent) { this.m_Name = "Cream"; this.m_Price = 15.0; }
public NameCardDecorator(BakeryComponent baseComponent) : base(baseComponent) { this.DecoratorName = "Name Card"; this.Price = 4.0; }
public CherryDecorator(BakeryComponent component) : base(component) { NameAdditional = "Cherry"; PriceAdditional = 2.0; }
public CherryDecorator(BakeryComponent baseComponent) : base(baseComponent) { m_Name = "Cherry"; m_Price = 2.0; }
public NameCardDecorator(BakeryComponent baseComponent) : base(baseComponent) { Name = "Name Card"; Price = 4; }