Example #1
0
        /// <summary>
        /// Get all the routes equalling the from stn.
        /// </summary>
        private void CalculateRoutes()
        {
            this.Routes = new ObservableCollection <RouteDetailsType>();

            for (int index = 0; index < journeyController.GetMileageDetailsLength(); ++index)
            {
                if (NynaeveLib.Utils.StringCompare.SimpleCompare(
                        journeyController.GetFromStation(index),
                        this.Stn))
                {
                    this.Routes.Add(journeyController.GetRoute(index));
                }
            }
        }