Exemplo n.º 1
0
 private void UpdateText()
 {
     textBox.Text = UserButton == byte.MaxValue ? string.Empty : UserButton.ToString(System.Globalization.CultureInfo.InvariantCulture);
     if (UserButton == DefaultButton)
     {
         textBox.BackColor = SystemColors.Window;
         textBox.ForeColor = SystemColors.WindowText;
     }
     else
     {
         textBox.BackColor = SystemColors.Highlight;
         textBox.ForeColor = SystemColors.HighlightText;
     }
 }
Exemplo n.º 2
0
 private void UpdateText()
 {
     textBox.Text = UserButton == byte.MaxValue ? string.Empty: UserButton.ToString();
     if (UserButton == DefaultButton)
     {
         textBox.BackColor = SystemColors.Window;
         textBox.ForeColor = SystemColors.WindowText;
     }
     else
     {
         textBox.BackColor = SystemColors.Highlight;
         textBox.ForeColor = SystemColors.HighlightText;
     }
 }