public void SetLocations(IEnumerable <IFeatureLocation> locations) { SegmentGenerationMethod oldMethod = SegmentGenerationMethod; SegmentGenerationMethod = SegmentGenerationMethod.None; Locations.SetValues(locations); SegmentGenerationMethod = oldMethod; }
/// <summary> /// Sets the locations. Temporarily switches segmentgenerationmethod to none for speed. /// </summary> /// <param name="locations"></param> public virtual void SetLocations(IEnumerable <INetworkLocation> locations) { SegmentGenerationMethod oldMethod = SegmentGenerationMethod; SegmentGenerationMethod = SegmentGenerationMethod.None; Locations.SetValues(locations); SegmentGenerationMethod = oldMethod; }