protected virtual void OnColorSchemeChanged(object sender, ColorSchemeChangeEventArgs e) { PanelColors.Clear(); Invalidate(invalidateChildren: false); if (this.ColorSchemeChanged != null) { this.ColorSchemeChanged(sender, e); } }
protected virtual void OnCustomColorsChanged(object sender, EventArgs e) { if (ColorScheme == ColorScheme.Custom) { PanelColors.Clear(); Invalidate(invalidateChildren: false); } if (this.CustomColorsChanged != null) { this.CustomColorsChanged(sender, e); } }