@@ -20,7 +20,11 @@ public static PropertyContainerByte Create(object data, PropertyInfo propertyInf
20
20
{
21
21
throw new ArgumentException ( "Missing Arma.Studio.Data.UI.PropertyAttribute." , nameof ( propertyInfo ) ) ;
22
22
}
23
- return new PropertyContainerByte ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Byte ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
23
+ var container = new PropertyContainerByte ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Byte ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
24
+ container . Stepsize = attribute . Stepsize ;
25
+ container . MinValue = attribute . MinValue ;
26
+ container . MaxValue = attribute . MaxValue ;
27
+ return container ;
24
28
}
25
29
}
26
30
public class PropertyContainerSByte : PropertyContainerBase
@@ -41,7 +45,11 @@ public static PropertyContainerSByte Create(object data, PropertyInfo propertyIn
41
45
{
42
46
throw new ArgumentException ( "Missing Arma.Studio.Data.UI.PropertyAttribute." , nameof ( propertyInfo ) ) ;
43
47
}
44
- return new PropertyContainerSByte ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( SByte ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
48
+ var container = new PropertyContainerSByte ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( SByte ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
49
+ container . Stepsize = attribute . Stepsize ;
50
+ container . MinValue = attribute . MinValue ;
51
+ container . MaxValue = attribute . MaxValue ;
52
+ return container ;
45
53
}
46
54
}
47
55
public class PropertyContainerInt32 : PropertyContainerBase
@@ -62,7 +70,11 @@ public static PropertyContainerInt32 Create(object data, PropertyInfo propertyIn
62
70
{
63
71
throw new ArgumentException ( "Missing Arma.Studio.Data.UI.PropertyAttribute." , nameof ( propertyInfo ) ) ;
64
72
}
65
- return new PropertyContainerInt32 ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Int32 ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
73
+ var container = new PropertyContainerInt32 ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Int32 ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
74
+ container . Stepsize = attribute . Stepsize ;
75
+ container . MinValue = attribute . MinValue ;
76
+ container . MaxValue = attribute . MaxValue ;
77
+ return container ;
66
78
}
67
79
}
68
80
public class PropertyContainerUInt32 : PropertyContainerBase
@@ -83,7 +95,11 @@ public static PropertyContainerUInt32 Create(object data, PropertyInfo propertyI
83
95
{
84
96
throw new ArgumentException ( "Missing Arma.Studio.Data.UI.PropertyAttribute." , nameof ( propertyInfo ) ) ;
85
97
}
86
- return new PropertyContainerUInt32 ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( UInt32 ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
98
+ var container = new PropertyContainerUInt32 ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( UInt32 ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
99
+ container . Stepsize = attribute . Stepsize ;
100
+ container . MinValue = attribute . MinValue ;
101
+ container . MaxValue = attribute . MaxValue ;
102
+ return container ;
87
103
}
88
104
}
89
105
public class PropertyContainerInt16 : PropertyContainerBase
@@ -104,7 +120,11 @@ public static PropertyContainerInt16 Create(object data, PropertyInfo propertyIn
104
120
{
105
121
throw new ArgumentException ( "Missing Arma.Studio.Data.UI.PropertyAttribute." , nameof ( propertyInfo ) ) ;
106
122
}
107
- return new PropertyContainerInt16 ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Int16 ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
123
+ var container = new PropertyContainerInt16 ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Int16 ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
124
+ container . Stepsize = attribute . Stepsize ;
125
+ container . MinValue = attribute . MinValue ;
126
+ container . MaxValue = attribute . MaxValue ;
127
+ return container ;
108
128
}
109
129
}
110
130
public class PropertyContainerUInt16 : PropertyContainerBase
@@ -125,7 +145,11 @@ public static PropertyContainerUInt16 Create(object data, PropertyInfo propertyI
125
145
{
126
146
throw new ArgumentException ( "Missing Arma.Studio.Data.UI.PropertyAttribute." , nameof ( propertyInfo ) ) ;
127
147
}
128
- return new PropertyContainerUInt16 ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( UInt16 ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
148
+ var container = new PropertyContainerUInt16 ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( UInt16 ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
149
+ container . Stepsize = attribute . Stepsize ;
150
+ container . MinValue = attribute . MinValue ;
151
+ container . MaxValue = attribute . MaxValue ;
152
+ return container ;
129
153
}
130
154
}
131
155
public class PropertyContainerInt64 : PropertyContainerBase
@@ -146,7 +170,11 @@ public static PropertyContainerInt64 Create(object data, PropertyInfo propertyIn
146
170
{
147
171
throw new ArgumentException ( "Missing Arma.Studio.Data.UI.PropertyAttribute." , nameof ( propertyInfo ) ) ;
148
172
}
149
- return new PropertyContainerInt64 ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Int64 ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
173
+ var container = new PropertyContainerInt64 ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Int64 ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
174
+ container . Stepsize = attribute . Stepsize ;
175
+ container . MinValue = attribute . MinValue ;
176
+ container . MaxValue = attribute . MaxValue ;
177
+ return container ;
150
178
}
151
179
}
152
180
public class PropertyContainerUInt64 : PropertyContainerBase
@@ -167,7 +195,11 @@ public static PropertyContainerUInt64 Create(object data, PropertyInfo propertyI
167
195
{
168
196
throw new ArgumentException ( "Missing Arma.Studio.Data.UI.PropertyAttribute." , nameof ( propertyInfo ) ) ;
169
197
}
170
- return new PropertyContainerUInt64 ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( UInt64 ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
198
+ var container = new PropertyContainerUInt64 ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( UInt64 ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
199
+ container . Stepsize = attribute . Stepsize ;
200
+ container . MinValue = attribute . MinValue ;
201
+ container . MaxValue = attribute . MaxValue ;
202
+ return container ;
171
203
}
172
204
}
173
205
public class PropertyContainerSingle : PropertyContainerBase
@@ -188,7 +220,11 @@ public static PropertyContainerSingle Create(object data, PropertyInfo propertyI
188
220
{
189
221
throw new ArgumentException ( "Missing Arma.Studio.Data.UI.PropertyAttribute." , nameof ( propertyInfo ) ) ;
190
222
}
191
- return new PropertyContainerSingle ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Single ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
223
+ var container = new PropertyContainerSingle ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Single ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
224
+ container . Stepsize = attribute . Stepsize ;
225
+ container . MinValue = attribute . MinValue ;
226
+ container . MaxValue = attribute . MaxValue ;
227
+ return container ;
192
228
}
193
229
}
194
230
public class PropertyContainerDouble : PropertyContainerBase
@@ -209,7 +245,11 @@ public static PropertyContainerDouble Create(object data, PropertyInfo propertyI
209
245
{
210
246
throw new ArgumentException ( "Missing Arma.Studio.Data.UI.PropertyAttribute." , nameof ( propertyInfo ) ) ;
211
247
}
212
- return new PropertyContainerDouble ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Double ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
248
+ var container = new PropertyContainerDouble ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Double ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
249
+ container . Stepsize = attribute . Stepsize ;
250
+ container . MinValue = attribute . MinValue ;
251
+ container . MaxValue = attribute . MaxValue ;
252
+ return container ;
213
253
}
214
254
}
215
255
public class PropertyContainerChar : PropertyContainerBase
@@ -230,7 +270,11 @@ public static PropertyContainerChar Create(object data, PropertyInfo propertyInf
230
270
{
231
271
throw new ArgumentException ( "Missing Arma.Studio.Data.UI.PropertyAttribute." , nameof ( propertyInfo ) ) ;
232
272
}
233
- return new PropertyContainerChar ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Char ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
273
+ var container = new PropertyContainerChar ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Char ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
274
+ container . Stepsize = attribute . Stepsize ;
275
+ container . MinValue = attribute . MinValue ;
276
+ container . MaxValue = attribute . MaxValue ;
277
+ return container ;
234
278
}
235
279
}
236
280
public class PropertyContainerBoolean : PropertyContainerBase
@@ -251,7 +295,11 @@ public static PropertyContainerBoolean Create(object data, PropertyInfo property
251
295
{
252
296
throw new ArgumentException ( "Missing Arma.Studio.Data.UI.PropertyAttribute." , nameof ( propertyInfo ) ) ;
253
297
}
254
- return new PropertyContainerBoolean ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Boolean ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
298
+ var container = new PropertyContainerBoolean ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Boolean ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
299
+ container . Stepsize = attribute . Stepsize ;
300
+ container . MinValue = attribute . MinValue ;
301
+ container . MaxValue = attribute . MaxValue ;
302
+ return container ;
255
303
}
256
304
}
257
305
public class PropertyContainerString : PropertyContainerBase
@@ -272,7 +320,11 @@ public static PropertyContainerString Create(object data, PropertyInfo propertyI
272
320
{
273
321
throw new ArgumentException ( "Missing Arma.Studio.Data.UI.PropertyAttribute." , nameof ( propertyInfo ) ) ;
274
322
}
275
- return new PropertyContainerString ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( String ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
323
+ var container = new PropertyContainerString ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( String ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
324
+ container . Stepsize = attribute . Stepsize ;
325
+ container . MinValue = attribute . MinValue ;
326
+ container . MaxValue = attribute . MaxValue ;
327
+ return container ;
276
328
}
277
329
}
278
330
public class PropertyContainerDecimal : PropertyContainerBase
@@ -293,7 +345,11 @@ public static PropertyContainerDecimal Create(object data, PropertyInfo property
293
345
{
294
346
throw new ArgumentException ( "Missing Arma.Studio.Data.UI.PropertyAttribute." , nameof ( propertyInfo ) ) ;
295
347
}
296
- return new PropertyContainerDecimal ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Decimal ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
348
+ var container = new PropertyContainerDecimal ( attribute . Title , attribute . Description , data , propertyInfo . Name , ( obj ) => ( Decimal ) propertyInfo . GetValue ( obj , null ) , ( obj , val ) => propertyInfo . SetValue ( obj , val , null ) ) ;
349
+ container . Stepsize = attribute . Stepsize ;
350
+ container . MinValue = attribute . MinValue ;
351
+ container . MaxValue = attribute . MaxValue ;
352
+ return container ;
297
353
}
298
354
}
299
355
}
0 commit comments