コード例 #1
0
ファイル: YoutubeVideoList.cs プロジェクト: nghoang/tvkpme
 private void button1_Click(object sender, EventArgs e)
 {
     if (youtube_videos == null)
     {
         youtube_videos = new List<YoutubeObject>();
     }
     btLoadMore.Visible = false;
     barSearching.Value = 3;
     barSearching.Visible = true;
     btStop.Visible = true;
     ys = new YoutubeSearch();
     ys.callback = this;
     //ys.ContinueSearching();
     System.Threading.Thread th = new System.Threading.Thread(new System.Threading.ThreadStart(ys.ContinueSearching));
     th.Start();
 }
コード例 #2
0
ファイル: FormYoutube.cs プロジェクト: nghoang/tvkpme
        private void Search()
        {
            if (textBoxKeyword.Text.Trim() == "")
            {
                MessageBox.Show("Please enter search term");
                return;
            }
            string cate_id = category_ids[comboBoxCategory.SelectedIndex];
            string sort_id = sort_ids[comboBoxSort.SelectedIndex];
            string uploaded_id = uploaded_ids[comboBoxUploaded.SelectedIndex];

            btSearch.Visible = false;
            barSearching.Value = 3;
            barSearching.Visible = true;
            btStop.Visible = true;

            ys = new YoutubeSearch();
            ys.callback = this;
            ys.SetSearchVariables(cate_id, sort_id, uploaded_id, textBoxKeyword.Text);
            //ys.SearchYoutubeASY();
            System.Threading.Thread th = new System.Threading.Thread(new System.Threading.ThreadStart(ys.SearchYoutubeASY));
            th.Start();

            SaveSearchInList();
        }
コード例 #3
0
ファイル: MainApp.cs プロジェクト: nghoang/tvkpme
 private void galleryControlGallery1_ItemClick(object sender, GalleryItemClickEventArgs e)
 {
     if (e.Item.Tag.ToString() == "load_more")
     {
         YoutubeSearch ys = new YoutubeSearch();
         ys.callback = this;
         ys.ContinueSearching();
         //System.Threading.Thread th = new System.Threading.Thread(new System.Threading.ThreadStart(ys.ContinueSearching));
         //th.Start();
     }
     else
         callback_choose_youtube_object((int)e.Item.Tag);
 }