public void OnPaint(object sender, ExDrawEventArgs e) { isPainted = false; this.Refresh(); Drawer.DrawClasses(e.Classes, e.Graphics); Drawer.DrawCenters(e.Classes, e.Graphics); isPainted = true; }
public void SimulateDraw(Graphics graphics, Rectangle rect, List <ImageClass> classes) { ExDrawEventArgs e = new ExDrawEventArgs(graphics, rect, classes); OnDraw(e); }
protected virtual void OnDraw(ExDrawEventArgs e) { e.Raise(this, ref Draw); }