示例#1
0
        private void btnSearch_Click(object sender, RoutedEventArgs e)
        {
            var searcher = new YouTubeSearcher();

            searcher.list = this.VideoList;
            searcher.SearchForWP8(this.txtKeyword.Text);
        }
示例#2
0
 public static void Search(string query, Action callback)
 {
     if (searchInProgress)
     {
         SharedCoroutineStarter.instance.StopCoroutine("SearchYoutubeWithMyExeCoroutine");
     }
     SharedCoroutineStarter.instance.StartCoroutine(
         YouTubeSearcher.SearchYoutubeWithMyExeCoroutine(query, callback));
 }
        private void DoSearch(string query)
        {
            _videoListViewController.SetLoadingState(true);
            _videoListViewController.SetContent(new List <YTResult>());

            YouTubeSearcher.Search(query, selectedLevel, delegate() {
                _videoListViewController.SetContent(YouTubeSearcher.searchResults);
                _videoListViewController.SetLoadingState(false);
            });
        }
示例#4
0
        private void OnQueryAction(string query)
        {
            ResetSearchView();
            downloadButton.interactable = false;
            refineButton.interactable   = false;
            StartCoroutine(SearchLoading());

            YouTubeSearcher.Search(query, () =>
            {
                updateSearchResultsCoroutine = UpdateSearchResults(YouTubeSearcher.searchResults);
                StartCoroutine(updateSearchResultsCoroutine);
            });
        }
示例#5
0
 private void btnSearch_Click(object sender, RoutedEventArgs e)
 {
     var searcher = new YouTubeSearcher();
     searcher.list = this.VideoList;
     searcher.SearchForWP8(this.txtKeyword.Text);
 }