Exemple #1
0
        private void loadPersistance()
        {
            PersitanceController controller = new PersitanceController();
            var file = controller.Read();

            foreach (var category in file.Categories)
            {
                CategoriesController.AddCategory(category);
            }
            foreach (var feed in file.feeds)
            {
                feed.InitializeCategory();
                FeedsController.AddFeed(feed);
            }


            UpdateCategories();
            UpdateFeedList();
        }
Exemple #2
0
        private void PodcastPlayerMainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            var persitanceController = new PersitanceController();

            persitanceController.Write(new PersistantFile(FeedsController.GetFeeds(), CategoriesController.GetCategories()));
        }