예제 #1
0
        private void napuniListu()
        {
            ClanDAL cDAL = new ClanDAL();

            using (DvdKlubEntities db = new DvdKlubEntities())
            {
                List <Clan> listaClanova = cDAL.IzlistajClanove();
                listView1.ItemsSource       = listaClanova;
                listView1.DisplayMemberPath = "Ime";
                listView1.SelectedValuePath = "ClanID";
            }
        }
        private void napuniKombo()
        {
            ClanDAL cDAL = new ClanDAL();

            using (DvdKlubEntities db = new DvdKlubEntities())
            {
                List <Clan> listaClanova = cDAL.IzlistajClanove();
                ComboBox1.ItemsSource       = listaClanova;
                ComboBox1.DisplayMemberPath = "PunoIme";
                ComboBox1.SelectedValuePath = "ClanID";
            }
        }