aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Data/Tuples/FileTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Data/Tuples/FileTuple.cs')
-rw-r--r--src/WixToolset.Data/Tuples/FileTuple.cs32
1 files changed, 24 insertions, 8 deletions
diff --git a/src/WixToolset.Data/Tuples/FileTuple.cs b/src/WixToolset.Data/Tuples/FileTuple.cs
index 1271ad55..eab29dfa 100644
--- a/src/WixToolset.Data/Tuples/FileTuple.cs
+++ b/src/WixToolset.Data/Tuples/FileTuple.cs
@@ -10,7 +10,6 @@ namespace WixToolset.Data
10 TupleDefinitionType.File, 10 TupleDefinitionType.File,
11 new[] 11 new[]
12 { 12 {
13 new IntermediateFieldDefinition(nameof(FileTupleFields.File), IntermediateFieldType.String),
14 new IntermediateFieldDefinition(nameof(FileTupleFields.Component_), IntermediateFieldType.String), 13 new IntermediateFieldDefinition(nameof(FileTupleFields.Component_), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(FileTupleFields.ShortFileName), IntermediateFieldType.String), 14 new IntermediateFieldDefinition(nameof(FileTupleFields.ShortFileName), IntermediateFieldType.String),
16 new IntermediateFieldDefinition(nameof(FileTupleFields.LongFileName), IntermediateFieldType.String), 15 new IntermediateFieldDefinition(nameof(FileTupleFields.LongFileName), IntermediateFieldType.String),
@@ -23,6 +22,9 @@ namespace WixToolset.Data
23 new IntermediateFieldDefinition(nameof(FileTupleFields.Vital), IntermediateFieldType.Bool), 22 new IntermediateFieldDefinition(nameof(FileTupleFields.Vital), IntermediateFieldType.Bool),
24 new IntermediateFieldDefinition(nameof(FileTupleFields.Checksum), IntermediateFieldType.Bool), 23 new IntermediateFieldDefinition(nameof(FileTupleFields.Checksum), IntermediateFieldType.Bool),
25 new IntermediateFieldDefinition(nameof(FileTupleFields.Compressed), IntermediateFieldType.Bool), 24 new IntermediateFieldDefinition(nameof(FileTupleFields.Compressed), IntermediateFieldType.Bool),
25 new IntermediateFieldDefinition(nameof(FileTupleFields.FontTitle), IntermediateFieldType.String),
26 new IntermediateFieldDefinition(nameof(FileTupleFields.SelfRegCost), IntermediateFieldType.Number),
27 new IntermediateFieldDefinition(nameof(FileTupleFields.BindPath), IntermediateFieldType.String),
26 }, 28 },
27 typeof(FileTuple)); 29 typeof(FileTuple));
28 } 30 }
@@ -32,7 +34,6 @@ namespace WixToolset.Data.Tuples
32{ 34{
33 public enum FileTupleFields 35 public enum FileTupleFields
34 { 36 {
35 File,
36 Component_, 37 Component_,
37 ShortFileName, 38 ShortFileName,
38 LongFileName, 39 LongFileName,
@@ -45,6 +46,9 @@ namespace WixToolset.Data.Tuples
45 Vital, 46 Vital,
46 Checksum, 47 Checksum,
47 Compressed, 48 Compressed,
49 FontTitle,
50 SelfRegCost,
51 BindPath,
48 } 52 }
49 53
50 public class FileTuple : IntermediateTuple 54 public class FileTuple : IntermediateTuple
@@ -59,12 +63,6 @@ namespace WixToolset.Data.Tuples
59 63
60 public IntermediateField this[FileTupleFields index] => this.Fields[(int)index]; 64 public IntermediateField this[FileTupleFields index] => this.Fields[(int)index];
61 65
62 public string File
63 {
64 get => (string)this.Fields[(int)FileTupleFields.File];
65 set => this.Set((int)FileTupleFields.File, value);
66 }
67
68 public string Component_ 66 public string Component_
69 { 67 {
70 get => (string)this.Fields[(int)FileTupleFields.Component_]; 68 get => (string)this.Fields[(int)FileTupleFields.Component_];
@@ -136,5 +134,23 @@ namespace WixToolset.Data.Tuples
136 get => (bool?)this.Fields[(int)FileTupleFields.Compressed]; 134 get => (bool?)this.Fields[(int)FileTupleFields.Compressed];
137 set => this.Set((int)FileTupleFields.Compressed, value); 135 set => this.Set((int)FileTupleFields.Compressed, value);
138 } 136 }
137
138 public string FontTitle
139 {
140 get => (string)this.Fields[(int)FileTupleFields.FontTitle];
141 set => this.Set((int)FileTupleFields.FontTitle, value);
142 }
143
144 public int? SelfRegCost
145 {
146 get => (int?)this.Fields[(int)FileTupleFields.SelfRegCost];
147 set => this.Set((int)FileTupleFields.SelfRegCost, value);
148 }
149
150 public string BindPath
151 {
152 get => (string)this.Fields[(int)FileTupleFields.BindPath];
153 set => this.Set((int)FileTupleFields.BindPath, value);
154 }
139 } 155 }
140} 156}