Ejemplo n.º 1
0
 protected void OnRedraw(RedrawEventArgs e)
 {
     if (this.Redraw != null)
     {
         this.Redraw(this, e);
     }
 }
Ejemplo n.º 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;
         }
     }
 }