示例#1
0
        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?
        }
示例#2
0
        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);
        }