예제 #1
0
 public NameCardDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     m_Name  = "Name Card";
     m_Price = 4.0;
 }
예제 #2
0
 protected Decorator(BakeryComponent baseComponent)
 {
     _baseComponent = baseComponent;
 }
예제 #3
0
 public CreamDecorator(BakeryComponent baseComponent) : base(baseComponent)
 {
     Name  = "Cream";
     Price = 1.0;
 }
예제 #4
0
 public CreamDecorator(BakeryComponent component) 
     : base(component)
 {
     this.name = "Cream";
     this.price = 1.0;
 }
예제 #5
0
 protected Decorator(BakeryComponent component)
 {
     this.baseComponent = component;
 }
예제 #6
0
 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;
 }
예제 #8
0
 public CreamDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.DecoratorName = "Cream";
     this.Price         = 1.0;
 }
예제 #9
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;
 }
예제 #11
0
 protected Decorator(BakeryComponent baseComponent)
 {
     m_BaseComponent = baseComponent;
 }
예제 #12
0
 public NameCardDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.m_Name = "Name Card";
     this.m_Price = 4.0;
 }
예제 #13
0
 public CreamDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.m_Name = "Cream";
     this.m_Price = 1.0;
 }
예제 #14
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;
 }
예제 #16
0
 public CherryDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.m_Name = "Cherry";
     this.m_Price = 2.0;
 }
예제 #17
0
 protected Decorator(BakeryComponent component)
 {
     Component = component;
 }
        BakeryComponent bakeryComponent;                 // a takze zawiera w sobie Bakery Component

        public RaspberriesDecorator(BakeryComponent b)
        {
            this.bakeryComponent = b;
        }
예제 #19
0
 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());
 }
예제 #23
0
파일: Program.cs 프로젝트: GAlex7/TA
 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;
 }
예제 #25
0
 public NameCardDecorator(BakeryComponent component) : base(component)
 {
     NameAdditional  = "Name Card";
     PriceAdditional = 4.0;
 }
예제 #26
0
 public CherryDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.DecoratorName = "Cherry";
     this.Price         = 2.0;
 }
예제 #27
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;
 }
예제 #29
0
 public CreamDecorator(BakeryComponent mBakeryComponent) : base(mBakeryComponent)
 {
     this.m_Name  = "Cream";
     this.m_Price = 15.0;
 }
예제 #30
0
 public NameCardDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.DecoratorName = "Name Card";
     this.Price         = 4.0;
 }
예제 #31
0
 public CherryDecorator(BakeryComponent component) : base(component)
 {
     NameAdditional  = "Cherry";
     PriceAdditional = 2.0;
 }
예제 #32
0
 public CherryDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     m_Name  = "Cherry";
     m_Price = 2.0;
 }
예제 #33
0
 public NameCardDecorator(BakeryComponent baseComponent) : base(baseComponent)
 {
     Name  = "Name Card";
     Price = 4;
 }