private void LoadMoreResultsAsync() { log.Info("Search returned " + _currentSearch.Results.Count + " track results."); if (_currentSearch.HasMoreResults) { log.Info("More results avalible."); } log.Debug("Adding results to TrackDataSearchResults"); foreach (var r in _currentSearch.Results) { TrackDataSearchResults.Add(r); } }
private void LoadMoreResults(object o) { Action a = new Action(this.LoadMoreResultsAsync); //sets up UI for searching this.SearchStatus = "Searching..."; //starts async search a.BeginInvoke(new AsyncCallback(this.MoreResultsLoaded), null); var res = _currentSearch.LoadMoreResults(); foreach (var r in res) { TrackDataSearchResults.Add(r); } }