Beispiel #1
0
 DoubleBuffer ensureDBuffer()
 {
     if (dbuffer == null) dbuffer = new DoubleBuffer();
     return dbuffer;
 }
Beispiel #2
0
 protected void ClearDBuffer()
 {
     if (doubleBuffer != null) doubleBuffer.Dispose();
     doubleBuffer = null;
 }
Beispiel #3
0
 private DoubleBuffer EnsureScrollbarButtonBuffer(int width, int height)
 {
     if (scrollBarButtonBuffer == null)
     {
         scrollBarButtonBuffer = new DoubleBuffer(false);
     }
     scrollBarButtonBuffer.EnsureDBuffer(width, height);
     return scrollBarButtonBuffer;
 }
Beispiel #4
0
        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;
        }
Beispiel #5
0
 private void EnsureDoubleBuffer()
 {
     if (doubleBuffer == null) doubleBuffer = new DoubleBuffer(Width, Height + DBufferSpace);
 }