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); } }
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); } }
public static void Draw(bool selected, SystemCoordinates center, DoubleExtention radius, DoubleExtention l1, DoubleExtention l2) { OGL.DrawCirclePart(new Pen(selected ? Color.Blue : Color.Black, 2), center, radius, l1, l2); }