public EventPoint(PointFr value, EventPointType type, LineSegmentFr[] crossingSegments, SweepLine sweepLine) { PointValue = value; Type = type; CrossingSegments = crossingSegments; SweepLine = sweepLine; }
public EventPoint(PointFr value, EventPointType type, LineSegmentFr?segment, SweepLine sweepLine) { PointValue = value; Type = type; Segment = segment; SweepLine = sweepLine; }
public EventPointType AddEventPointType(string name) { var pointType = DataContext.EventPointTypes .FirstOrDefault( x => x.Name.Equals(name, StringComparison.CurrentCultureIgnoreCase)); if (pointType != null) { return(null); //Тип события {name} уже существует! } pointType = new EventPointType { Name = name }; DataContext.EventPointTypes.Add(pointType); DataContext.SaveChanges(); return(pointType); }