예제 #1
0
 protected void OnRedraw(RedrawEventArgs e)
 {
     if (this.Redraw != null)
     {
         this.Redraw(this, e);
     }
 }
예제 #2
0
 protected virtual void Animation_Redraw(object sender, RedrawEventArgs e)
 {
     // Don't trigger multiple invalidates
     lock (myLock) {
         if (allowInvalidate)
         {
             this.Control.Invalidate();
             allowInvalidate = false;
         }
     }
 }