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(); }
private void Search() { if (txtSearch.Text == "") { return; } webStatus = WebBrowserStatus.INFO; Uri url = WebLib.MakeSearchUrl(txtSearch.Text); webBrowser1.Navigate(url.AbsoluteUri); listReview.Clear(); }
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); }
private void Poster() { string posterPageUrl = WebLib.FindPoster(webBrowser1.Document); pictureBox1.ImageLocation = posterPageUrl; }