Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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);
         }
     }
 }
Ejemplo n.º 3
0
 public void StartFeedTimer(Feed feed)
 {
     TimerService.StopTimer(feed);
     TimerService.StartTimer(feed);
 }