Пример #1
0
 public TranslatedChanges Append(AddRoadSegment change)
 {
     return(new TranslatedChanges(Reason, Operator, Organization, _changes.Add(change), _mapToRoadNodeId, _mapToRoadSegmentId.Add(change.RecordNumber, change.TemporaryId)));
 }
Пример #2
0
 public bool TryFindAddRoadSegment(RoadSegmentId id, out AddRoadSegment change)
 {
     change = this.OfType <AddRoadSegment>().SingleOrDefault(_ => _.TemporaryId == id);
     return(change != null);
 }
Пример #3
0
 public TranslatedChanges Replace(AddRoadSegment before, AddRoadSegment after)
 {
     return(new TranslatedChanges(Reason, Operator, Organization, _changes.Remove(before).Add(after), _mapToRoadNodeId, _mapToRoadSegmentId));
 }