Beispiel #1
0
        public void UpdatePodcasts(string podcast)
        {
            int updatefrequency = Convert.ToInt32(comboBoxUpdateFrequency.Text.Split(' ')[0]);

            PodcastList.RemovePodcast(podcast);
            EpisodeList.RemoveEpisode(podcast);
            Podcast.AddPodcast(comboBoxCategory.Text, updatefrequency, textBoxUrl.Text);

            UpdatelistViewPodcast();
            listViewEpisodes.Items.Clear();
            rTBoxEpisodeDetail.Clear();
        }
Beispiel #2
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     try
     {
         string podcast = listViewPodcast.SelectedItems[0].Text;
         PodcastList.RemovePodcast(podcast);
         EpisodeList.RemoveEpisode(podcast);
         UpdatelistViewPodcast();
     }
     catch (Exception)
     {
         MessageBox.Show("You must select the podcast you want to delete!");
     }
 }