public void UpdateCell(Product product) { this.product = product; this.TextLabel.LineBreakMode = UILineBreakMode.TailTruncation; this.Accessory = UITableViewCellAccessory.DisclosureIndicator; this.TextLabel.Text = this.product.Title; this.DetailTextLabel.Text = this.product.Price; this.ImageView.Image = UIImage.FromFile("Images/icon-29.png"); if(!string.IsNullOrWhiteSpace(product.IconImageUri)) DownloadImage(product.IconImageUri); }
public ProductTableViewCell(Product product, string identKey) : base(UITableViewCellStyle.Subtitle, identKey) { Initialize(); UpdateCell(product); }
public ProductScreen(Product product) : base() { this.product = product; this.Title = product.Title; }