private static void setText(ExtendedTextBox textBox, string text, bool evenIfFocused)
 {
     if (evenIfFocused || !textBox.IsKeyboardFocused)
     {
         textBox.SetText(text);
     }
 }
 private static void setTime(ExtendedTextBox textBox, string time, bool evenIfFocused)
 {
     if (evenIfFocused ||
         !textBox.IsKeyboardFocused ||
         textBox.Tag == null ||
         textBox.Text == (textBox.Tag as string))
     {
         textBox.SetText(time);
         textBox.Tag = time;
     }
 }
Ejemplo n.º 3
0
 private static void setTime(ExtendedTextBox textBox, string time, bool evenIfFocused)
 {
     if (evenIfFocused
         || !textBox.IsKeyboardFocused
         || textBox.Text == (textBox.Tag as string))
     {
         textBox.SetText(time);
         textBox.Tag = time;
     }
 }
Ejemplo n.º 4
0
 private static void setText(ExtendedTextBox textBox, string text, bool evenIfFocused)
 {
     if (evenIfFocused || !textBox.IsKeyboardFocused)
     {
         textBox.SetText(text);
     }
 }