DoubleBuffer ensureDBuffer() { if (dbuffer == null) dbuffer = new DoubleBuffer(); return dbuffer; }
protected void ClearDBuffer() { if (doubleBuffer != null) doubleBuffer.Dispose(); doubleBuffer = null; }
private DoubleBuffer EnsureScrollbarButtonBuffer(int width, int height) { if (scrollBarButtonBuffer == null) { scrollBarButtonBuffer = new DoubleBuffer(false); } scrollBarButtonBuffer.EnsureDBuffer(width, height); return scrollBarButtonBuffer; }
public override void Dispose() { base.Dispose(); ClearDBuffer(); if (this.scrollBarButton != null) { scrollBarButton.Dispose(); scrollBarButton = null; } scrollAnimation.Dispose(); this.backgroundBrush.Dispose(); if (scrollBarButtonBuffer != null) scrollBarButtonBuffer.Dispose(); scrollBarButtonBuffer = null; }
private void EnsureDoubleBuffer() { if (doubleBuffer == null) doubleBuffer = new DoubleBuffer(Width, Height + DBufferSpace); }