Exemplo n.º 1
0
        public void Bind(Movie movie)
        {
            _freshImg.Hidden = !movie.ratings.IsFresh;
            _rottenImg.Hidden = !movie.ratings.IsRotten;

            _movieTitle.Text = movie.title;
            _movieTitle.SizeToFit();

            _criticScore.Text = RatingFormatter.Format(movie.ratings.critics_score);
            _criticScore.SizeToFit();

            _actors.Text = PersonFormatter.Format(2, movie.abridged_cast);
            _actors.SizeToFit();

            _mppaRuntime.Text = MpaaRuntimeFormatter.Format(movie.mpaa_rating, movie.runtime);
            _mppaRuntime.SizeToFit();

            _imgUri = new Uri(movie.posters.thumbnail);

            UIImage img = ImageLoader.DefaultRequestImage(_imgUri, this);
            _thumbnail.Image = img;

            LayoutSubviews();
        }
 public BoxOfficeSource()
 {
     TopBoxMovies = OpeningThisWeek = InTheater = new Movie[]{ };
 }