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