Develop and Download Open Source Software

Browse Subversion Repository

Contents of /branches/ProcessWatchImpl/Scone/SmileUserIdBox.cs

Parent Directory Parent Directory | Revision Log Revision Log


Revision 44 - (show annotations) (download)
Tue Dec 15 16:20:54 2009 UTC (14 years, 3 months ago) by netseed
File size: 711 byte(s)


1 using System.Windows;
2 using System.Windows.Controls;
3 using System.Windows.Input;
4 using SeedCreate.TextLibrary;
5 using SeedCreate.Controls.ControlBase;
6
7 namespace Toast.Scone
8 {
9 public class SmileUserIdBox : BiStateTextBox
10 {
11 private static AlphaNumericNormalizer Normalizer_ = new AlphaNumericNormalizer();
12
13
14 public SmileUserIdBox()
15 : base()
16 {
17 InputMethod.SetIsInputMethodEnabled(this, false);
18 }
19
20 protected override void OnTextChanged(TextChangedEventArgs e)
21 {
22 if (!IsEmpty)
23 {
24 Text = Normalizer_.Normalize(Text);
25 }
26
27 base.OnTextChanged(e);
28 }
29
30 protected override void OnLostFocus(RoutedEventArgs e)
31 {
32 base.OnLostFocus(e);
33 }
34
35 }
36 }

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26