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)); }
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)); }