public static bool ContainsPoint(Point p, Line line) { Rectangle selection = new Rectangle(p.X - 4, p.Y - 4, 8, 8); if (selection.Contains(line.Start) | selection.Contains(line.End)) { return true; } return false; }
public void AddLine(Line l) { graobjs.Add(l); }