Example #1
0
        private void _showMovieInfo(moiveInfo temp)
        {
            g_currentMovieInfo = temp;
            Image img = null;

            img = Image.FromFile("image\\" + temp.movieID);
            if (img == null)
            {
                img = _getImageForRemmote(temp.coverlink);
            }
            pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
            pictureBox1.Size     = img.Size;
            pictureBox1.Image    = img;
            shouMessage("");

            shouMessage("title:" + temp.title + "\n");
            shouMessage("导演" + ":");
            foreach (var daoyan in temp.listDirectors)
            {
                shouMessage(daoyan + ",");
            }
            shouMessage("\n");
            shouMessage("主演" + ":");
            foreach (var zhuyan in temp.listCasts)
            {
                shouMessage(zhuyan + " ");
            }
            shouMessage("\n");

            shouMessage("评分:" + temp.rate + "\n");
            shouMessage("链接:" + temp.movieUrl + "\n");


            //foreach(KeyValuePair<string, string> pair in  _getMovieinfoForDouban(temp.movieUrl))
            //{
            //    richTextBox1.AppendText(pair.Key + ":" + pair.Value + "\r\n");
            //}
        }
Example #2
0
        private moiveInfo converJaToMovieInfo(JObject jo)
        {
            moiveInfo temp = new moiveInfo();

            temp.star      = jo["star"].ToString();
            temp.title     = jo["title"].ToString();
            temp.movieUrl  = jo["url"].ToString();
            temp.listCasts = jo["casts"].ToObject <List <string> >();
            // richTextBox1.AppendText(jo["casts"].GetType().ToString());
            temp.rate          = jo["rate"].ToString();
            temp.movieID       = jo["id"].ToString();
            temp.listDirectors = jo["directors"].ToObject <List <string> >();
            temp.coverlink     = jo["cover"].ToString();
            foreach (string daoyan in temp.listDirectors)
            {
                daoyansource.Add(daoyan);
            }
            foreach (string zhuyan in temp.listCasts)
            {
                zhuyansource.Add(zhuyan);
            }
            dianyingsource.Add(temp.title);
            return(temp);
        }