public void BindStops(StopFile fstops) { foreach (var trip in this) { if (!trip.BindStop(fstops)) { Console.WriteLine("[BIND_STOPS_ISSUE]"); } } }
public bool BindStop(StopFile fstops) { if (_tripTimes == null) { return(false); } var result = false; foreach (var stop in fstops) { var stopTime = _tripTimes.ForStop(stop); if (stopTime != null) { Stops.Add(new FullStop(stop, stopTime)); result = true; } } _tripTimes = null; return(result); }