diff options
Diffstat (limited to 'src/WixToolset.Data/Tuples/ControlEventTuple.cs')
| -rw-r--r-- | src/WixToolset.Data/Tuples/ControlEventTuple.cs | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/WixToolset.Data/Tuples/ControlEventTuple.cs b/src/WixToolset.Data/Tuples/ControlEventTuple.cs index 9c460353..3cf6da53 100644 --- a/src/WixToolset.Data/Tuples/ControlEventTuple.cs +++ b/src/WixToolset.Data/Tuples/ControlEventTuple.cs | |||
| @@ -2,28 +2,28 @@ | |||
| 2 | 2 | ||
| 3 | namespace WixToolset.Data | 3 | namespace WixToolset.Data |
| 4 | { | 4 | { |
| 5 | using WixToolset.Data.Tuples; | 5 | using WixToolset.Data.Symbols; |
| 6 | 6 | ||
| 7 | public static partial class TupleDefinitions | 7 | public static partial class SymbolDefinitions |
| 8 | { | 8 | { |
| 9 | public static readonly IntermediateTupleDefinition ControlEvent = new IntermediateTupleDefinition( | 9 | public static readonly IntermediateSymbolDefinition ControlEvent = new IntermediateSymbolDefinition( |
| 10 | TupleDefinitionType.ControlEvent, | 10 | SymbolDefinitionType.ControlEvent, |
| 11 | new[] | 11 | new[] |
| 12 | { | 12 | { |
| 13 | new IntermediateFieldDefinition(nameof(ControlEventTupleFields.DialogRef), IntermediateFieldType.String), | 13 | new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.DialogRef), IntermediateFieldType.String), |
| 14 | new IntermediateFieldDefinition(nameof(ControlEventTupleFields.ControlRef), IntermediateFieldType.String), | 14 | new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.ControlRef), IntermediateFieldType.String), |
| 15 | new IntermediateFieldDefinition(nameof(ControlEventTupleFields.Event), IntermediateFieldType.String), | 15 | new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.Event), IntermediateFieldType.String), |
| 16 | new IntermediateFieldDefinition(nameof(ControlEventTupleFields.Argument), IntermediateFieldType.String), | 16 | new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.Argument), IntermediateFieldType.String), |
| 17 | new IntermediateFieldDefinition(nameof(ControlEventTupleFields.Condition), IntermediateFieldType.String), | 17 | new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.Condition), IntermediateFieldType.String), |
| 18 | new IntermediateFieldDefinition(nameof(ControlEventTupleFields.Ordering), IntermediateFieldType.Number), | 18 | new IntermediateFieldDefinition(nameof(ControlEventSymbolFields.Ordering), IntermediateFieldType.Number), |
| 19 | }, | 19 | }, |
| 20 | typeof(ControlEventTuple)); | 20 | typeof(ControlEventSymbol)); |
| 21 | } | 21 | } |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | namespace WixToolset.Data.Tuples | 24 | namespace WixToolset.Data.Symbols |
| 25 | { | 25 | { |
| 26 | public enum ControlEventTupleFields | 26 | public enum ControlEventSymbolFields |
| 27 | { | 27 | { |
| 28 | DialogRef, | 28 | DialogRef, |
| 29 | ControlRef, | 29 | ControlRef, |
| @@ -33,52 +33,52 @@ namespace WixToolset.Data.Tuples | |||
| 33 | Ordering, | 33 | Ordering, |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | public class ControlEventTuple : IntermediateTuple | 36 | public class ControlEventSymbol : IntermediateSymbol |
| 37 | { | 37 | { |
| 38 | public ControlEventTuple() : base(TupleDefinitions.ControlEvent, null, null) | 38 | public ControlEventSymbol() : base(SymbolDefinitions.ControlEvent, null, null) |
| 39 | { | 39 | { |
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | public ControlEventTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(TupleDefinitions.ControlEvent, sourceLineNumber, id) | 42 | public ControlEventSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(SymbolDefinitions.ControlEvent, sourceLineNumber, id) |
| 43 | { | 43 | { |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | public IntermediateField this[ControlEventTupleFields index] => this.Fields[(int)index]; | 46 | public IntermediateField this[ControlEventSymbolFields index] => this.Fields[(int)index]; |
| 47 | 47 | ||
| 48 | public string DialogRef | 48 | public string DialogRef |
| 49 | { | 49 | { |
| 50 | get => (string)this.Fields[(int)ControlEventTupleFields.DialogRef]; | 50 | get => (string)this.Fields[(int)ControlEventSymbolFields.DialogRef]; |
| 51 | set => this.Set((int)ControlEventTupleFields.DialogRef, value); | 51 | set => this.Set((int)ControlEventSymbolFields.DialogRef, value); |
| 52 | } | 52 | } |
| 53 | 53 | ||
| 54 | public string ControlRef | 54 | public string ControlRef |
| 55 | { | 55 | { |
| 56 | get => (string)this.Fields[(int)ControlEventTupleFields.ControlRef]; | 56 | get => (string)this.Fields[(int)ControlEventSymbolFields.ControlRef]; |
| 57 | set => this.Set((int)ControlEventTupleFields.ControlRef, value); | 57 | set => this.Set((int)ControlEventSymbolFields.ControlRef, value); |
| 58 | } | 58 | } |
| 59 | 59 | ||
| 60 | public string Event | 60 | public string Event |
| 61 | { | 61 | { |
| 62 | get => (string)this.Fields[(int)ControlEventTupleFields.Event]; | 62 | get => (string)this.Fields[(int)ControlEventSymbolFields.Event]; |
| 63 | set => this.Set((int)ControlEventTupleFields.Event, value); | 63 | set => this.Set((int)ControlEventSymbolFields.Event, value); |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | public string Argument | 66 | public string Argument |
| 67 | { | 67 | { |
| 68 | get => (string)this.Fields[(int)ControlEventTupleFields.Argument]; | 68 | get => (string)this.Fields[(int)ControlEventSymbolFields.Argument]; |
| 69 | set => this.Set((int)ControlEventTupleFields.Argument, value); | 69 | set => this.Set((int)ControlEventSymbolFields.Argument, value); |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | public string Condition | 72 | public string Condition |
| 73 | { | 73 | { |
| 74 | get => (string)this.Fields[(int)ControlEventTupleFields.Condition]; | 74 | get => (string)this.Fields[(int)ControlEventSymbolFields.Condition]; |
| 75 | set => this.Set((int)ControlEventTupleFields.Condition, value); | 75 | set => this.Set((int)ControlEventSymbolFields.Condition, value); |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | public int? Ordering | 78 | public int? Ordering |
| 79 | { | 79 | { |
| 80 | get => (int?)this.Fields[(int)ControlEventTupleFields.Ordering]; | 80 | get => (int?)this.Fields[(int)ControlEventSymbolFields.Ordering]; |
| 81 | set => this.Set((int)ControlEventTupleFields.Ordering, value); | 81 | set => this.Set((int)ControlEventSymbolFields.Ordering, value); |
| 82 | } | 82 | } |
| 83 | } | 83 | } |
| 84 | } \ No newline at end of file | 84 | } \ No newline at end of file |
