Example #1
0
 /// <summary>
 /// Sets the background colour.
 /// </summary>
 private void SetBackgroundColour()
 {
     if (Style == PanelStyle.Custom)
     {
         base.BackColor = _backColor;
     }
     else
     {
         base.BackColor = KryptonHelper.GetPanelColor(Style);
     }
     Invalidate();
 }
Example #2
0
 /// <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);
     }
 }