using System; using System.Drawing; using System.Windows.Forms; namespace Optimizer { public sealed class MoonRadio : RadioButton { public MoonRadio() { DoubleBuffered = true; } protected override void OnCheckedChanged(EventArgs e) { base.OnCheckedChanged(e); // custom theming if (this.Checked) { this.Tag = "themeable"; this.Font = new Font(this.Font, FontStyle.Underline); this.ForeColor = OptionsHelper.ForegroundColor; } else { this.Tag = string.Empty; this.ForeColor = Color.White; this.Font = new Font(this.Font, FontStyle.Regular); } } } }