Exemplo n.º 1
0
 public static void Update()
 {
     foreach (PodcastFeed f in FeedManager.FeedList)
     {
         f.CheckForUpdates();
     }
     FeedManager.DownloadNewContent();
 }
Exemplo n.º 2
0
        static void AddPocast()
        {
            Console.WriteLine("URL:");
            string url = Console.ReadLine();

            Console.WriteLine("Name:");
            string name = Console.ReadLine();

            try
            {
                FeedManager.AddPodcast(url, name);
            }
            catch (Exception ex)
            {
                Console.WriteLine("An error occurred, podcast not added\n" + ex.Message + "\n" + ex.StackTrace);
            }
        }
Exemplo n.º 3
0
        static void Main()
        {
            FeedManager.LoadFeedDetails();
            int userChoice;

            while ((userChoice = Menu()) != 4)
            {
                switch (userChoice)
                {
                case 1: AddPocast();
                    break;

                case 2: Update();
                    break;

                case 3: ListPodcasts();
                    break;

                default: break;
                }
            }
            FeedManager.SaveFeedDetails();
        }