Esempio n. 1
0
 public static void Update()
 {
     foreach (PodcastFeed f in FeedManager.FeedList)
     {
         f.CheckForUpdates();
     }
     FeedManager.DownloadNewContent();
 }
Esempio 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);
            }
        }
Esempio 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();
        }