Exemple #1
0
        private async void BindIATAPicker()
        {
            MasterInfo mInfo = App.DAUtil.GetMasterInfoByName("Stations");

            if (mInfo != null)
            {
                var stationsOffline = JsonConvert.DeserializeObject <SPData>(mInfo.content);
                iataPicker.ItemsSource = stationsOffline.d.results.Select(x => x.IATA_x0020_Code).ToList();
            }

            ToggleBusy(true);

            var stations = await SPUtility.GetStations(true);

            iataPicker.ItemsSource = stations.Select(x => x.Value).ToList();

            ToggleBusy(false);
        }