Exemplo n.º 1
0
        public virtual Shape AddFlowShape(PointF location, FlowchartStencilType type)
        {
            StencilItem stencil = Stencil[type];
            Shape       shape   = CreateElement(ShapeMode, location, type);

            Shapes.Add(Shapes.CreateKey(), shape);
            return(shape);
        }
Exemplo n.º 2
0
        private void AddStencilImplementation(Stencil stencil)
        {
            Suspend();
            foreach (StencilItem item in stencil.Values)
            {
                Shape shape = new Shape(item);
                shape.Label = new TextLabel(item.Key);

                Shapes.Add(Shapes.CreateKey(), shape);
            }
            Resume();
        }