Пример #1
0
 /// <summary>
 /// Get data from NOW including LIVE data (when network online)
 /// </summary>
 public ArrivalMonitor(BusStop stop) : this(stop, DateTime.Now)
 {
     liveMode = true;
     db       = BusDB_GTFS_SQL.Instance;
     fetcher  = new LiveArrivalFetcher(myStop);
     fetcher.ArrivalsUpdated += new LiveArrivalFetcher.ArrivalObserver(receiveLiveResults);
 }
Пример #2
0
        /// <summary>
        /// Use schedules only
        /// </summary>
        public ArrivalMonitor(BusStop stop, DateTime afterTime)
        {
            myStop         = stop;
            this.afterTime = afterTime;
            this.aheadTime = new TimeSpan(2, 0, 0);             //default look ahead to 2 hrs
            db             = BusDB_GTFS_SQL.Instance;

            //future time is close enough to now that RTS may have data
//			if (afterTime.Subtract (DateTime.Now) < new TimeSpan (2, 0, 0))
//				startLiveFetcher ();
        }
Пример #3
0
 public void Init()
 {
     db = BusDB_GTFS_SQL.Instance;
 }
Пример #4
0
 public BusStopMapViewController(IntPtr handle) : base(handle)
 {
     db = BusDB_GTFS_SQL.Instance;
 }