Beispiel #1
0
 /*load sex*/
 private void LoadSex()
 {
     cbSex.ItemsSource       = CollectionData.CollectionSex();
     cbSex.DisplayMemberPath = "Value";
     cbSex.SelectedValuePath = "Key";
     cbSex.SelectedValue     = "0";
 }
Beispiel #2
0
        /*load cities from api*/
        private async Task LoadCities()
        {
            Dictionary <string, string> cities = await CollectionData.CollectionCities(cbCountry.SelectedValue.ToString());

            cbCity.ItemsSource       = cities;
            cbCity.DisplayMemberPath = "Value";
            cbCity.SelectedValuePath = "Key";
            cbCity.SelectedValue     = cities.FirstOrDefault().Key;
        }
Beispiel #3
0
        /*loud contiries from api*/
        private async Task LoadCountries()
        {
            Dictionary <string, string> countries = await CollectionData.CollectionContries();

            cbCountry.ItemsSource       = countries;
            cbCountry.DisplayMemberPath = "Value";
            cbCountry.SelectedValuePath = "Key";
            cbCountry.SelectedValue     = "1";
        }