示例#1
0
        private void PrintReview()
        {
            StringBuilder str = new StringBuilder();

            WebLib.GetReview(webBrowser1.Document, listReview);
            for (int i = 0; i < listReview.Count; i++)
            {
                str.Append(listReview[i]);
                str.Append("\r\n\r\n");
            }

            txtReview.Text = str.ToString();
        }
示例#2
0
        private void Search()
        {
            if (txtSearch.Text == "")
            {
                return;
            }

            webStatus = WebBrowserStatus.INFO;
            Uri url = WebLib.MakeSearchUrl(txtSearch.Text);

            webBrowser1.Navigate(url.AbsoluteUri);

            listReview.Clear();
        }
示例#3
0
        private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
        {
            if (webStatus == WebBrowserStatus.INFO)
            {
                db = WebLib.MakeMovieDB(webBrowser1.Document);
                MovePage();
            }
            else if (webStatus == WebBrowserStatus.MOVIE_FIND)
            {
                WebLib.UpdateMovieDB(webBrowser1.Document, db);
                PrintReview();
                Poster();
                webStatus = WebBrowserStatus.END;
            }

            Output(db);
        }
示例#4
0
        private void Poster()
        {
            string posterPageUrl = WebLib.FindPoster(webBrowser1.Document);

            pictureBox1.ImageLocation = posterPageUrl;
        }