public void comboTown()
        {
            townImpl = new TownImpl();
            DataTable town = townImpl.Select(sValue);

            comboMuni.ItemsSource       = town.DefaultView;
            comboMuni.DisplayMemberPath = "name";
            comboMuni.SelectedValuePath = "id".ToString();
            comboMuni.SelectedIndex     = 0;
        }
예제 #2
0
        public void comboTown()
        {
            townImpl = new TownImpl();
            DataTable town = townImpl.Select(idprovince.ToString());

            comboMuni.ItemsSource       = town.DefaultView;
            comboMuni.DisplayMemberPath = "NAME";
            comboMuni.SelectedValuePath = "ID".ToString();
            comboMuni.SelectedIndex     = 0;
        }