/// <summary> /// Clears the gradient brush. /// </summary> private void ClearGradientBrush() { if (gradientBrush != null) { gradientBrush.Dispose(); gradientBrush = null; } }
/// <summary> /// Redraws this instance. /// </summary> private void Redraw() { if (br != null) { br.Dispose(); br = null; } Invalidate(true); }