Ejemplo n.º 1
0
 public InputFormatDouble(string name, TextBox tb, IInputFormatEventSink sink)
 {
     Control = tb;
     EventSink = sink;
     Name = name;
     tb.TextAlign = HorizontalAlignment.Right;
     tb.KeyDown += new KeyEventHandler(DoubleControl_OnKeyDown);
     tb.KeyPress += new KeyPressEventHandler(DoubleControl_OnKeyPress);
     tb.Leave += new EventHandler(DoubleControl_OnLeave);
 }
Ejemplo n.º 2
0
 public InputFormatInteger(string name, TextBox tb, IInputFormatEventSink es)
 {
     Control = tb;
     EventSink = es;
     Name = name;
     tb.TextAlign = HorizontalAlignment.Right;
     tb.KeyDown += new KeyEventHandler(IntegerControl_OnKeyDown);
     tb.KeyPress += new KeyPressEventHandler(IntegerControl_OnKeyPress);
     tb.Leave += new EventHandler(IntegerControl_OnLeave);
 }
Ejemplo n.º 3
0
 public InputFormatTime(string name, TextBox tb, IInputFormatEventSink es)
 {
     Control = tb;
     EventSink = es;
     Name = name;
 }