11namespace Gu . Wpf . NumericInput . Demo
22{
33 using System ;
4- using System . Collections . Generic ;
54 using System . ComponentModel ;
65 using System . Globalization ;
76 using System . Linq ;
8- using System . Reflection ;
97 using System . Runtime . CompilerServices ;
10- using System . Windows ;
118
129 using Gu . Wpf . NumericInput . Demo . Annotations ;
1310
@@ -65,15 +62,15 @@ public CultureInfo Culture
6562 {
6663 get
6764 {
68- return this . _culture ;
65+ return _culture ;
6966 }
7067 set
7168 {
72- if ( Equals ( value , this . _culture ) )
69+ if ( Equals ( value , _culture ) )
7370 {
7471 return ;
7572 }
76- this . _culture = value ;
73+ _culture = value ;
7774 this . OnPropertyChanged ( ) ;
7875 }
7976 }
@@ -168,15 +165,15 @@ public int? DecimalDigits
168165 {
169166 get
170167 {
171- return this . _decimalDigits ;
168+ return _decimalDigits ;
172169 }
173170 set
174171 {
175- if ( value == this . _decimalDigits )
172+ if ( value == _decimalDigits )
176173 {
177174 return ;
178175 }
179- this . _decimalDigits = value ;
176+ _decimalDigits = value ;
180177 this . OnPropertyChanged ( ) ;
181178 }
182179 }
@@ -185,15 +182,15 @@ public bool AllowSpinners
185182 {
186183 get
187184 {
188- return this . _allowSpinners ;
185+ return _allowSpinners ;
189186 }
190187 set
191188 {
192- if ( value . Equals ( this . _allowSpinners ) )
189+ if ( value . Equals ( _allowSpinners ) )
193190 {
194191 return ;
195192 }
196- this . _allowSpinners = value ;
193+ _allowSpinners = value ;
197194 this . OnPropertyChanged ( ) ;
198195 }
199196 }
@@ -202,15 +199,15 @@ public bool IsReadonly
202199 {
203200 get
204201 {
205- return this . _isReadonly ;
202+ return _isReadonly ;
206203 }
207204 set
208205 {
209- if ( value . Equals ( this . _isReadonly ) )
206+ if ( value . Equals ( _isReadonly ) )
210207 {
211208 return ;
212209 }
213- this . _isReadonly = value ;
210+ _isReadonly = value ;
214211 this . OnPropertyChanged ( ) ;
215212 }
216213 }
@@ -219,15 +216,15 @@ public string Suffix
219216 {
220217 get
221218 {
222- return this . _suffix ;
219+ return _suffix ;
223220 }
224221 set
225222 {
226- if ( value == this . _suffix )
223+ if ( value == _suffix )
227224 {
228225 return ;
229226 }
230- this . _suffix = value ;
227+ _suffix = value ;
231228 this . OnPropertyChanged ( ) ;
232229 }
233230 }
@@ -236,15 +233,15 @@ public string RegexPattern
236233 {
237234 get
238235 {
239- return this . _regexPattern ;
236+ return _regexPattern ;
240237 }
241238 set
242239 {
243- if ( value == this . _regexPattern )
240+ if ( value == _regexPattern )
244241 {
245242 return ;
246243 }
247- this . _regexPattern = value ;
244+ _regexPattern = value ;
248245 this . OnPropertyChanged ( ) ;
249246 }
250247 }
@@ -253,7 +250,7 @@ public string RegexPattern
253250
254251 public override string ToString ( )
255252 {
256- var mode = Configurable ? "Configureble " : "Default" ;
253+ var mode = Configurable ? "Configurable " : "Default" ;
257254 return string . Format ( "{0} ({1})" , Type . Name , mode ) ;
258255 }
259256
0 commit comments