/// <summary> /// Raises the ColorScheme changed event /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">A EventArgs that contains the event data.</param> protected virtual void OnColorSchemeChanged(object sender, ColorSchemeChangeEventArgs e) { ColorScheme eColorScheme = e.ColorSchema; foreach (PanderPanelW PanderPanelW in this.PanderPanelWs) { PropertyDescriptor propertyDescriptor = TypeDescriptor.GetProperties(PanderPanelW)["ColorScheme"]; if (propertyDescriptor != null) { propertyDescriptor.SetValue(PanderPanelW, eColorScheme); } } if (this.ColorSchemeChanged != null) { this.ColorSchemeChanged(sender, e); } }
/// <summary> /// Raises the ColorScheme changed event /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">A EventArgs that contains the event data.</param> protected virtual void OnColorSchemeChanged(object sender, ColorSchemeChangeEventArgs e) { this.PanelColors.Clear(); this.Invalidate(false); if (this.ColorSchemeChanged != null) { this.ColorSchemeChanged(sender, e); } }