示例#1
0
文件: Form1.cs 项目: pandrum/Podify
        private void lbxCategories_SelectedIndexChanged(object sender, EventArgs e)
        {
            dgPodcastFeed.Rows.Clear();
            var selectedCategory = lbxCategories.SelectedItem?.ToString();
            var podcastList      = podcastController.GetPodcasts();

            foreach (var podcast in podcastList.Where(p => p.Category.Equals(selectedCategory)))
            {
                dgPodcastFeed.Rows.Add(podcast.TotalEpisodes, podcast.Name, podcast.Interval, podcast.Category);
            }
        }
示例#2
0
文件: Form1.cs 项目: pandrum/Podify
 public MainWindow()
 {
     InitializeComponent();
     podcastController  = new PodcastController();
     episodeController  = new EpisodeController();
     categoryController = new CategoryController();
     podcasts           = podcastController.GetPodcasts();
     FillPodcastList();
     FillCategoryList();
     FillCategoryComboBox();
     InitTimers();
 }