public void ShowResults(RSSDiscover discover) { _haveAvailableResults = false; _resultList.Nodes.Clear(); foreach (RSSDiscover.RSSDiscoverResult result in discover.Results) { _resultList.Nodes.Add(result); if (result.ExistingFeed != null) { _checkColumn.SetItemCheckState(result, CheckBoxState.Grayed); } else { if (!_haveAvailableResults) { _checkColumn.SetItemCheckState(result, CheckBoxState.Checked); } _haveAvailableResults = true; } } NextPredicate(_haveAvailableResults); }
private void ParseDone() { if (_cancelled) { return; } if (_rssUnitOfWork.Status == RSSWorkStatus.Success) { _feedsToSubscribe = new ResourceProxy[] { _newFeedProxy }; ShowTitleGroupPage(OnBackToFirstPage); } else if (_rssUnitOfWork.Status == RSSWorkStatus.FoundHTML && !_isSearchFeed) { _rssDiscover = new RSSDiscover(); _rssDiscover.DiscoverProgress += OnDownloadProgress; _rssDiscover.DiscoverDone += OnDiscoverDone; _rssDiscover.StartDiscover(_rssUnitOfWork.FeedURL, _rssUnitOfWork.ReadStream, _rssUnitOfWork.CharacterSet); } else { ShowErrorInformation(_rssUnitOfWork.Status, _rssUnitOfWork.LastException); } }
[SetUp] public void SetUp() { _rssDiscover = new RSSDiscover(); _rssDiscover.DownloadResults = false; }