Beispiel #1
0
        private void SelectionChangedNewCity(object sender, SelectionChangedEventArgs e)
        {
            City selectedCity = bindingSourceCity.Current as City;

            if (selectedCity.IsNull())
            {
                return;
            }

            CountrySolClient client1 = Extensions.Extensions.GetCountrySolService();

            bindingSourceCountry.DataSource = client1.Countries(selectedCity.Id, selectedCity.IsActive);
            client1.Close();
        }
Beispiel #2
0
        private void bindingSourceCity_CurrentChanged(object sender, EventArgs e)
        {
            CountrySolClient client = Extensions.Extensions.GetCountrySolService();

            if (client == null)
            {
                return;
            }

            BloodGroupService.City city = bindingSourceCity.Current as BloodGroupService.City;

            if (city == null)
            {
                return;
            }

            bindingSourceCountry.DataSource = client.Countries(city.Id, true);
            client.Close();
        }