示例#1
0
 public List<FeedNode> GetFeeds()
 {
     if (_controller == null)
     {
         _controller = new FeedManageController();
         Load();
     }
     var root = _controller.Feeds;
     return root?.subNodes??new List<FeedNode>();
 }
示例#2
0
 public void Load()
 {
     if (_controller == null)
     {
         _controller = new FeedManageController();
     }
     if (!_controller.ReadFromFile(_cfgFile))
     {
         _SetDefaultFeeds();
         Save();
     }
 }