示例#1
0
 protected virtual void OnColorSchemeChanged(object sender, ColorSchemeChangeEventArgs e)
 {
     PanelColors.Clear();
     Invalidate(invalidateChildren: false);
     if (this.ColorSchemeChanged != null)
     {
         this.ColorSchemeChanged(sender, e);
     }
 }
示例#2
0
 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);
     }
 }