Exemplo n.º 1
0
 public static void DrawLine(Point p1, Point p2, Color drawingColor, float width, bool Selected = false)
 {
     if (!Selected)
     {
         OGL.DrawLine(new Pen(drawingColor, width), p1, p2);
     }
     else
     {
         OGL.DrawLine(new Pen(Color.Blue, width), p1, p2);
     }
 }
Exemplo n.º 2
0
        public static void DrawLine(SystemCoordinates p1, SystemCoordinates p2, Color drawingColor, float width, bool Selected = false)
        {
            Point pp1 = CoordinateSystem.Instance.Converter(p1);
            Point pp2 = CoordinateSystem.Instance.Converter(p2);

            if (!Selected)
            {
                OGL.DrawLine(new Pen(drawingColor, width), pp1, pp2);
            }
            else
            {
                OGL.DrawLine(new Pen(Color.Blue, width), pp1, pp2);
            }
        }