Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public ProductTableViewCell(Product product, string identKey)
     : base(UITableViewCellStyle.Subtitle, identKey)
 {
     Initialize();
     UpdateCell(product);
 }
Ejemplo n.º 3
0
 public ProductScreen(Product product)
     : base()
 {
     this.product = product;
     this.Title = product.Title;
 }