예제 #1
0
파일: Decorator.cs 프로젝트: GAlex7/TA
 protected Decorator(BakeryComponent baseComponent)
 {
     this.BaseComponent = baseComponent;
 }
예제 #2
0
 public ArtificialScentDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.DecoratorName = "Artificial Scent";
     this.Price = 3.0;
 }
예제 #3
0
 public NameCardDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.DecoratorName = "Name Card";
     this.Price = 4.0;
 }
예제 #4
0
파일: CreamDecorator.cs 프로젝트: GAlex7/TA
 public CreamDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.DecoratorName = "Cream";
     this.Price = 1.0;
 }
예제 #5
0
 public CherryDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.DecoratorName = "Cherry";
     this.Price = 2.0;
 }