Beispiel #1
0
        private async void Button_Click_2(object sender, RoutedEventArgs e)
        {
            var dataProvider = new TflBusArrivalsProvider();

            //listBusStops.ItemsSource = dataProvider.GetBusStopsInCircleAsync(51.590705, -0.14287, 150);

            var stops = await dataProvider.GetBusStopsInCircleAsync(new GpsLocation(51.590705, -0.14287), 150);
            listBusStops.ItemsSource = stops;

        }
Beispiel #2
0
        private async void Button_Click_2(object sender, RoutedEventArgs e)
        {
            var dataProvider = new TflBusArrivalsProvider();

            //listBusStops.ItemsSource = dataProvider.GetBusStopsInCircleAsync(51.590705, -0.14287, 150);

            var stops = await dataProvider.GetBusStopsInCircleAsync(new GpsLocation(51.590705, -0.14287), 150);

            listBusStops.ItemsSource = stops;
        }
Beispiel #3
0
 private async void listBusStops_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
 {
     var dataProvider = new TflBusArrivalsProvider();
     busArrival.ItemsSource = await dataProvider.GetPredictionsAsync((BusStop)listBusStops.SelectedItem);
 }
Beispiel #4
0
        private async void listBusStops_SelectionChanged_1(object sender, SelectionChangedEventArgs e)
        {
            var dataProvider = new TflBusArrivalsProvider();

            busArrival.ItemsSource = await dataProvider.GetPredictionsAsync((BusStop)listBusStops.SelectedItem);
        }