コード例 #1
0
ファイル: Decorator.cs プロジェクト: GAlex7/TA
 protected Decorator(BakeryComponent baseComponent)
 {
     this.BaseComponent = baseComponent;
 }
コード例 #2
0
ファイル: ArtificialScentDecorator.cs プロジェクト: GAlex7/TA
 public ArtificialScentDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.DecoratorName = "Artificial Scent";
     this.Price = 3.0;
 }
コード例 #3
0
ファイル: NameCardDecorator.cs プロジェクト: GAlex7/TA
 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
ファイル: CherryDecorator.cs プロジェクト: AYankova/HQC
 public CherryDecorator(BakeryComponent baseComponent)
     : base(baseComponent)
 {
     this.DecoratorName = "Cherry";
     this.Price = 2.0;
 }