/// <summary> /// Sets the background colour. /// </summary> private void SetBackgroundColour() { if (Style == PanelStyle.Custom) { base.BackColor = _backColor; } else { base.BackColor = KryptonHelper.GetPanelColor(Style); } Invalidate(); }
/// <summary> /// Sets the background colour. /// </summary> private void SetBackgroundColour() { if (this.Style == PanelStyle.Custom) { base.BackColor = _backColor; return; } else { base.BackColor = KryptonHelper.GetPanelColor(this.Style); } }