Пример #1
0
        private void dgPodcastFeed_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            lbxEpisodes.Items.Clear();
            if (dgPodcastFeed.CurrentRow != null)
            {
                int selectedPodcast = dgPodcastFeed.CurrentRow.Index;
                PopulateTextBoxes(selectedPodcast);
                var episodeList = episodeController.GetAllEpisodesFromPodcast(selectedPodcast);
                episodeList.ToList().ForEach(episode => lbxEpisodes.Items.Add(episode.Name));

                this.selectedPodcast = selectedPodcast;

                lblEpisodeList.Text = "Episodes for " + podcastController.GetPodcastName(selectedPodcast);
            }
        }