Exemplo n.º 1
0
		public void SetReviewToDisplay (Review review)
		{
			if (review == null) throw new ArgumentException ("review");
			
			AuthorNameLabel.Text = review.AuthorName;
			ReviewDateLabel.Text = DateTimeUtils.ParseUnixTime(review.Time).ToString("D");
			ReviewLabel.Text = string.IsNullOrEmpty(review.Text) ? "Rating only" : review.Text;
			RatingControl.Rating = review.Rating;
			SelectionStyle = UITableViewCellSelectionStyle.None;
		}
 public ReviewsAdapter(Context context, Review[] reviews)
 {
     this.context = context;
     this.reviews = reviews;
 }