コード例 #1
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));
 }
コード例 #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));
        }