public void LoadBusStopTimes(string busStopNumber)
 {
     var x = new BusStopViewModel { BusStopNumber = busStopNumber };
     var f = new Repository();
     f.Save(x);
     var wc = new DublinBusWindowsPhone.Services.Web.DublinBusWebServiceClient();
     var obs = wc.GetBusStopArrivalTimes(int.Parse(busStopNumber));
     obs.Subscribe(times => this.ArrivalTimes = new ObservableCollection<BusStopArrivalTime>(times));
 }
示例#2
0
        public void LoadBusStopTimes(string busStopNumber)
        {
            var x = new BusStopViewModel {
                BusStopNumber = busStopNumber
            };
            var f = new Repository();

            f.Save(x);
            var wc  = new DublinBusWindowsPhone.Services.Web.DublinBusWebServiceClient();
            var obs = wc.GetBusStopArrivalTimes(int.Parse(busStopNumber));

            obs.Subscribe(times => this.ArrivalTimes = new ObservableCollection <BusStopArrivalTime>(times));
        }