protected internal virtual void SetAnimator(Animator animator) { mAnimator = animator; }
//Constructor public Diagram() { //Create License Component.Instance.GetLicense(typeof(Diagram), this); // This call is required by the Windows.Forms Form Designer. InitializeComponent(); SetStyle(System.Windows.Forms.ControlStyles.UserPaint, true); SetStyle(System.Windows.Forms.ControlStyles.AllPaintingInWmPaint, true); SetStatus(Status.Default); //Create a new renderer SetRender(new Render()); //Sets up current layers reference etc ClearDiagram(); Margin = new Margin(); Animator = new Animator(this); //Create an initial render and draw onto control surface mRender.RenderDiagram(new Rectangle(0,0,this.Width,this.Height)); DrawDiagram(new Rectangle(0,0,this.Width,this.Height)); }