Exemple #1
0
        public Form1()
        {
            InitializeComponent();

            IPodcastDal dataacess = new PodcastDataAccess.PodcastDal();

            service = new PodcastService(dataacess);
            service.Initialize();
            var savedPodcasts = service.GetAllPodcast();

            foreach (var p in savedPodcasts)
            {
                string[]     podcastInfo        = { p.ID.ToString(), p.Name, p.Episodes.ToString(), p.RefreshInterval.ToString(), p.Category };
                ListViewItem PodcastListDisplay = new ListViewItem(podcastInfo);
                listPodcast.Items.Add(PodcastListDisplay);
            }

            listPodcast.FullRowSelect = true;
            fillMyCategoryList();
            fillMyCombobox();
        }