Esempio n. 1
0
 public void BindStops(StopFile fstops)
 {
     foreach (var trip in this)
     {
         if (!trip.BindStop(fstops))
         {
             Console.WriteLine("[BIND_STOPS_ISSUE]");
         }
     }
 }
Esempio n. 2
0
        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);
        }