Exemple #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();
        }
Exemple #2
0
        private void Search()
        {
            if (txtSearch.Text == "")
            {
                return;
            }

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

            webBrowser1.Navigate(url.AbsoluteUri);

            listReview.Clear();
        }
Exemple #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);
        }
Exemple #4
0
        private void Poster()
        {
            string posterPageUrl = WebLib.FindPoster(webBrowser1.Document);

            pictureBox1.ImageLocation = posterPageUrl;
        }