private async void RunGameSearch(string searchText) { TwitchWrapper twitchWrapper = new TwitchWrapper(); var result = await twitchWrapper.SearchGames(searchText); //May need to check that the suggestion page is still active here... would a parameter work? }
private async void RunGameSearch(string searchText) { TwitchWrapper twitchWrapper = new TwitchWrapper(); var result = await twitchWrapper.SearchGames(searchText); //May need to check that this page is active ObservableCollection <Game> results = new ObservableCollection <Game>(result.Games); m_view.PopulateSearchList(results); }