public virtual void EndUpdate() { if (_updateCount > 0) { _updateCount--; } if (AllowPainting) { Invalidate(); } }