コード例 #1
0
        private void napuniKombo()
        {
            FilmDAL fDAL = new FilmDAL();

            using (DvdKlubEntities db = new DvdKlubEntities())
            {
                List <Film> listaFilmova = fDAL.IzlistajFilmove(izabraniZanr);
                comboBox1.ItemsSource       = listaFilmova;
                comboBox1.DisplayMemberPath = "Zanr";
                comboBox1.SelectedValuePath = "Zanr";
            }
        }
コード例 #2
0
        private void puniListu(Film izabraniZanr)
        {
            FilmDAL fDal = new FilmDAL();

            listViewFilmovi.DataContext = fDal.IzlistajFilmove(izabraniZanr);
        }