Example #1
0
        public static void ChangeLine(string name, Coordinates coordinatesStart, Coordinates coordinatesEnd)
        {
            Tvary shapes = new Tvary();
            Line  line   = (Line)shapes.returnShape(name);

            line.x1 = coordinatesStart.x;
            line.y1 = coordinatesStart.y;
            line.x2 = coordinatesEnd.x;
            line.y2 = coordinatesEnd.y;
        }