/// <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); }
/// <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 (); }
public void Init() { db = BusDB_GTFS_SQL.Instance; }
public BusStopMapViewController(IntPtr handle) : base(handle) { db = BusDB_GTFS_SQL.Instance; }