public void BeginReadAllFeeds(FeedSubscriptionReadDelegate feedSubscriptionReadDelegate) { fst.BeginReadAllFeeds(feedSubscriptionReadDelegate); }
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()); } } }
public void BeginReadAllFeeds(FeedSubscriptionReadDelegate callback) { beginReadAllFeedsInNodeList(rootLevelNodes, callback); }
public void BeginReadFeed(FeedSubscriptionReadDelegate lCallback) { if (updateTimer != null) { updateTimer.Dispose(); } callback = lCallback; feed.BeginRead(new FeedReadCompleteDelegate(feedReadCallback)); }