public void DeleteFeed(string feedName)
        {
            List <Feed> currentFeed = GetAllFeeds();

            Feed feedToDelete = GetSpecificFeed(feedName);

            TimerService.StopTimer(feedToDelete);

            currentFeed.RemoveAll(x => x.Name == feedName);

            serializer.SerializeList(currentFeed);
        }
 private void RemovePodcastBtn_Click(object sender, EventArgs e)
 {
     if (validate.IfItemNotSelected(PodcastFeed.SelectedItems.Count))
     {
         Podcast RemovedPod = pHandler.RemovePodcastFromList(PodcastFeed.SelectedItems[0].Text);
         if (RemovedPod.updateTimer != null)
         {
             tService.StopTimer(RemovedPod);
         }
         episodeDesc.Clear();
         episodeList.Items.Clear();
         FillPodcastFeed();
     }
     else
     {
         using (new CenterWinDialog(this))
         {
             MessageBox.Show("You must select a podcast to remove it.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
 }
 public void StartFeedTimer(Feed feed)
 {
     TimerService.StopTimer(feed);
     TimerService.StartTimer(feed);
 }