diff options
| author | Rob Mensching <rob@firegiant.com> | 2019-05-08 13:35:21 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2019-05-08 13:44:59 -0700 |
| commit | ef6485ac4a03333701d343c1e3a52d25805c58f1 (patch) | |
| tree | 3093b1410e651a90c3776b42090bb4e62e98c514 /src/WixToolset.Data/Tuples/MsiEmbeddedUITuple.cs | |
| parent | 6e7a3274a1710a734e5369d0a1703b9c9ac9345b (diff) | |
| download | wix-ef6485ac4a03333701d343c1e3a52d25805c58f1.tar.gz wix-ef6485ac4a03333701d343c1e3a52d25805c58f1.tar.bz2 wix-ef6485ac4a03333701d343c1e3a52d25805c58f1.zip | |
Add additional strongly typed tuples
Diffstat (limited to 'src/WixToolset.Data/Tuples/MsiEmbeddedUITuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/MsiEmbeddedUITuple.cs | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/WixToolset.Data/Tuples/MsiEmbeddedUITuple.cs b/src/WixToolset.Data/Tuples/MsiEmbeddedUITuple.cs index 82deb53a..b58f2c1a 100644 --- a/src/WixToolset.Data/Tuples/MsiEmbeddedUITuple.cs +++ b/src/WixToolset.Data/Tuples/MsiEmbeddedUITuple.cs | |||
| @@ -10,11 +10,11 @@ namespace WixToolset.Data | |||
| 10 | TupleDefinitionType.MsiEmbeddedUI, | 10 | TupleDefinitionType.MsiEmbeddedUI, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(MsiEmbeddedUITupleFields.MsiEmbeddedUI), IntermediateFieldType.String), | ||
| 14 | new IntermediateFieldDefinition(nameof(MsiEmbeddedUITupleFields.FileName), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(MsiEmbeddedUITupleFields.FileName), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(MsiEmbeddedUITupleFields.Attributes), IntermediateFieldType.Number), | 14 | new IntermediateFieldDefinition(nameof(MsiEmbeddedUITupleFields.EntryPoint), IntermediateFieldType.Bool), |
| 15 | new IntermediateFieldDefinition(nameof(MsiEmbeddedUITupleFields.SupportsBasicUI), IntermediateFieldType.Bool), | ||
| 16 | new IntermediateFieldDefinition(nameof(MsiEmbeddedUITupleFields.MessageFilter), IntermediateFieldType.Number), | 16 | new IntermediateFieldDefinition(nameof(MsiEmbeddedUITupleFields.MessageFilter), IntermediateFieldType.Number), |
| 17 | new IntermediateFieldDefinition(nameof(MsiEmbeddedUITupleFields.Data), IntermediateFieldType.Path), | 17 | new IntermediateFieldDefinition(nameof(MsiEmbeddedUITupleFields.Source), IntermediateFieldType.Path), |
| 18 | }, | 18 | }, |
| 19 | typeof(MsiEmbeddedUITuple)); | 19 | typeof(MsiEmbeddedUITuple)); |
| 20 | } | 20 | } |
| @@ -24,11 +24,11 @@ namespace WixToolset.Data.Tuples | |||
| 24 | { | 24 | { |
| 25 | public enum MsiEmbeddedUITupleFields | 25 | public enum MsiEmbeddedUITupleFields |
| 26 | { | 26 | { |
| 27 | MsiEmbeddedUI, | ||
| 28 | FileName, | 27 | FileName, |
| 29 | Attributes, | 28 | EntryPoint, |
| 29 | SupportsBasicUI, | ||
| 30 | MessageFilter, | 30 | MessageFilter, |
| 31 | Data, | 31 | Source, |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | public class MsiEmbeddedUITuple : IntermediateTuple | 34 | public class MsiEmbeddedUITuple : IntermediateTuple |
| @@ -43,22 +43,22 @@ namespace WixToolset.Data.Tuples | |||
| 43 | 43 | ||
| 44 | public IntermediateField this[MsiEmbeddedUITupleFields index] => this.Fields[(int)index]; | 44 | public IntermediateField this[MsiEmbeddedUITupleFields index] => this.Fields[(int)index]; |
| 45 | 45 | ||
| 46 | public string MsiEmbeddedUI | ||
| 47 | { | ||
| 48 | get => (string)this.Fields[(int)MsiEmbeddedUITupleFields.MsiEmbeddedUI]?.Value; | ||
| 49 | set => this.Set((int)MsiEmbeddedUITupleFields.MsiEmbeddedUI, value); | ||
| 50 | } | ||
| 51 | |||
| 52 | public string FileName | 46 | public string FileName |
| 53 | { | 47 | { |
| 54 | get => (string)this.Fields[(int)MsiEmbeddedUITupleFields.FileName]?.Value; | 48 | get => (string)this.Fields[(int)MsiEmbeddedUITupleFields.FileName]?.Value; |
| 55 | set => this.Set((int)MsiEmbeddedUITupleFields.FileName, value); | 49 | set => this.Set((int)MsiEmbeddedUITupleFields.FileName, value); |
| 56 | } | 50 | } |
| 57 | 51 | ||
| 58 | public int Attributes | 52 | public bool EntryPoint |
| 59 | { | 53 | { |
| 60 | get => (int)this.Fields[(int)MsiEmbeddedUITupleFields.Attributes]?.Value; | 54 | get => this.Fields[(int)MsiEmbeddedUITupleFields.EntryPoint].AsBool(); |
| 61 | set => this.Set((int)MsiEmbeddedUITupleFields.Attributes, value); | 55 | set => this.Set((int)MsiEmbeddedUITupleFields.EntryPoint, value); |
| 56 | } | ||
| 57 | |||
| 58 | public bool SupportsBasicUI | ||
| 59 | { | ||
| 60 | get => this.Fields[(int)MsiEmbeddedUITupleFields.SupportsBasicUI].AsBool(); | ||
| 61 | set => this.Set((int)MsiEmbeddedUITupleFields.SupportsBasicUI, value); | ||
| 62 | } | 62 | } |
| 63 | 63 | ||
| 64 | public int MessageFilter | 64 | public int MessageFilter |
| @@ -67,10 +67,10 @@ namespace WixToolset.Data.Tuples | |||
| 67 | set => this.Set((int)MsiEmbeddedUITupleFields.MessageFilter, value); | 67 | set => this.Set((int)MsiEmbeddedUITupleFields.MessageFilter, value); |
| 68 | } | 68 | } |
| 69 | 69 | ||
| 70 | public string Data | 70 | public string Source |
| 71 | { | 71 | { |
| 72 | get => (string)this.Fields[(int)MsiEmbeddedUITupleFields.Data]?.Value; | 72 | get => (string)this.Fields[(int)MsiEmbeddedUITupleFields.Source]?.Value; |
| 73 | set => this.Set((int)MsiEmbeddedUITupleFields.Data, value); | 73 | set => this.Set((int)MsiEmbeddedUITupleFields.Source, value); |
| 74 | } | 74 | } |
| 75 | } | 75 | } |
| 76 | } \ No newline at end of file | 76 | } |
