public Shape(StencilItem stencil) { AllowMove = true; AllowScale = true; AllowRotate = false; DrawSelected = true; Direction = Direction.Both; Interaction = UserInteraction.BringToFront; MinimumSize = new SizeF(32, 32); MaximumSize = new SizeF(320, 320); //Set up stencil StencilItem = stencil; stencil.CopyTo(this); Ports = new Ports(Model); }
public Shape(StencilItem stencil) { SuspendEvents = true; AllowMove = true; AllowScale = true; AllowRotate = false; DrawSelected = true; Direction = Direction.Both; Interaction = UserInteraction.BringToFront; MinimumSize = new SizeF(32, 32); MaximumSize = new SizeF(320, 320); //Set up stencil StencilItem = stencil; stencil.CopyTo(this); Ports = new Elements(typeof(Port), "Port"); SuspendEvents = false; }