private void GetCountriesList()
        {
            CountryList?.Clear();

            CountryList = AsyncHelper.RunSync <IList <Country> >(() => CitySelectorService.
                                                                 GetCountries());
        }
Example #2
0
        private void GetCountriesList()
        {
            CountryList?.Clear();
            var items = AsyncHelper.RunSync <IList <Country> >(() => CitySelectorService.
                                                               GetCountries());

            CountryList = items.OrderBy(x => x.Name).ToList();
        }
        private void GetStatesList()
        {
            StateList?.Clear();

            if (SelectedCountryId.HasValue)
            {
                StateList = AsyncHelper.RunSync <IList <State> >(() => CitySelectorService.
                                                                 GetStates(SelectedCountryId.Value));
            }
        }
        private void GetCitiesList()
        {
            CityList?.Clear();

            if (SelectedStateId.HasValue)
            {
                CityList = AsyncHelper.RunSync <IList <City> >(() => CitySelectorService.
                                                               GetCities(SelectedStateId.Value));
            }
        }
Example #5
0
        private void GetStatesList()
        {
            StateList?.Clear();

            if (SelectedCountryId.HasValue)
            {
                var items = AsyncHelper.RunSync <IList <State> >(() => CitySelectorService.
                                                                 GetStates(SelectedCountryId.Value));
                StateList = items.OrderBy(x => x.Name).ToList();
            }
        }
Example #6
0
        private void GetCitiesList()
        {
            CityList?.Clear();

            if (SelectedStateId.HasValue)
            {
                var items = AsyncHelper.RunSync <IList <City> >(() => CitySelectorService.
                                                                GetCities(SelectedStateId.Value));
                CityList = items.OrderBy(x => x.Name).ToList();
            }
        }