コード例 #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";
            }
        }
コード例 #2
0
        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";
            }
        }