Exemplo n.º 1
0
        public void Execute()
        {
            GenericShape newForm = shapeContainer.shapes[newShapeIndex];

            //Point width = Math.Abs(newForm.position.X- start);
            //Point height = Math.Abs(newForm.position.Y - end);

            marker = new Marker(start, end, newShapeIndex, brush);
            newForm.Shape = marker.Shape;
            shapeContainer.UpdateShape(newForm, newShapeIndex);
        }
Exemplo n.º 2
0
        public void Execute()
        {
            GenericShape newForm = new GenericShape();

            marker = new Marker(start, end, newShapeIndex, brush);

            newForm.Shape = marker.Shape;
            //newForm.position = new Point(start, end);
            newForm.ShapeTyp = GenericShape.type.Marker;

            shapeContainer.shapes.Add(newShapeIndex, newForm);
        }