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