Example #1
0
 /*load sex*/
 private void LoadSex()
 {
     cbSex.ItemsSource       = CollectionData.CollectionSex();
     cbSex.DisplayMemberPath = "Value";
     cbSex.SelectedValuePath = "Key";
     cbSex.SelectedValue     = "0";
 }
Example #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;
        }
Example #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";
        }