コード例 #1
0
 public void BeginReadAllFeeds(FeedSubscriptionReadDelegate feedSubscriptionReadDelegate)
 {
     fst.BeginReadAllFeeds(feedSubscriptionReadDelegate);
 }
コード例 #2
0
 private void beginReadAllFeedsInNodeList(List<FeedSubTreeNodeBase> nodeList, FeedSubscriptionReadDelegate callback)
 {
     foreach (FeedSubTreeNodeBase fstnb in nodeList)
     {
         Type t = fstnb.GetType();
         if (t == typeof (FeedSubscription))
         {
             FeedSubscription fs = fstnb as FeedSubscription;
             fs.BeginReadFeed(callback);
         }
         else if (t == typeof (FeedFolder))
         {
             FeedFolder ff = fstnb as FeedFolder;
             beginReadAllFeedsInNodeList(ff.ChildNodes, callback);
         }
         else
         {
             throw new Exception("FeedSubscriptionTree.ReadAllFeeds error: unsupported node type: " + t.ToString());
         }
     }
 }
コード例 #3
0
 public void BeginReadAllFeeds(FeedSubscriptionReadDelegate callback)
 {
     beginReadAllFeedsInNodeList(rootLevelNodes, callback);
 }
コード例 #4
0
 public void BeginReadFeed(FeedSubscriptionReadDelegate lCallback)
 {
     if (updateTimer != null)
     {
         updateTimer.Dispose();
     }
     callback = lCallback;
     feed.BeginRead(new FeedReadCompleteDelegate(feedReadCallback));
 }