public bool AddPoint() { if (HashSetPoints.Add(new PointWithID(PointIncrementalCounter, PointNamePrefix))) { PointIncrementalCounter++; return true; } else return false; }
public override bool AddPoint(PointWithID GraphPoint) { if (GraphPoint.NamePrefix != PointNamePrefix || PointCollection.Count(i1 => i1.ID == GraphPoint.ID) > 0) throw new Exception(String.Format("Point {0} not compatible from this graph or already contains in collection points.", GraphPoint)); else { if (HashSetPoints.Add(GraphPoint)) { PointIncrementalCounter = PointCollection.Count(); return true; } else return false; } }
public override bool AddPoint(Point GraphPoint) { return(HashSetPoints.Add(GraphPoint)); }