private void btnSearch_Click(object sender, RoutedEventArgs e) { var searcher = new YouTubeSearcher(); searcher.list = this.VideoList; searcher.SearchForWP8(this.txtKeyword.Text); }
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); }); }
private void OnQueryAction(string query) { ResetSearchView(); downloadButton.interactable = false; refineButton.interactable = false; StartCoroutine(SearchLoading()); YouTubeSearcher.Search(query, () => { updateSearchResultsCoroutine = UpdateSearchResults(YouTubeSearcher.searchResults); StartCoroutine(updateSearchResultsCoroutine); }); }
private void btnSearch_Click(object sender, RoutedEventArgs e) { var searcher = new YouTubeSearcher(); searcher.list = this.VideoList; searcher.SearchForWP8(this.txtKeyword.Text); }