Ejemplo n.º 1
0
        private void Selector_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            province province = ComboBoxProvince.SelectedItem as province;

            if (province != null)
            {
                this.ComboBoxCity.ItemsSource = CrowFoundMgr.Instance.GetCity(province.province_id);
                if (ComboBoxCity.HasItems)
                {
                    ComboBoxCity.SelectedIndex = 0;
                }
            }
        }
Ejemplo n.º 2
0
        public province GetProvince()
        {
            province province = ComboBoxProvince.SelectedItem as province;

            return(province);
        }