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