Exemplo n.º 1
0
 public void getData(String json)
 { 
     m = JsonConvert.DeserializeObject<movie>(json);
     this.Text = "IMDB: " + m.Title;
     string Poster = m.Poster;
     if (Poster.Length > 10)
       {
         pictureBox1.Load(Poster);
       }
     lgenre.Text = m.Genre;
     lreleased.Text = m.Released;
     lrated.Text = m.Rated;
     lruntime.Text = m.Runtime;
     ldirector.Text = m.Director;
     lvotes.Text = m.imdbVotes;
     llanguage.Text = m.Language;
     lawards.Text = m.Awards;
     plotBox.Text = SpliceText(m.Plot, 64);
     lmetascore.Text = m.Metascore;
     limdbrating.Text = m.imdbRating;
     actorBox.Text = m.Actors;
   }