示例#1
0
        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);
        }
示例#2
0
        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;
        }