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; } }
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; } }