public void updateCell(Schemas.Category.CategoryInfo entity) { // Establecemos el texto del label dentro del collectionview lblName.Text = entity.Name; // Establecemos la imagen dentro del collectionview CategoryImage.Image = MarketHelper.FromUrl(entity.Image); // Aqui comprobamos que la imagen del modulo NUBE viene rara //if (entity.Id == 6) //{ // btnCategoryImage.SetImage(MarketHelper.FromUrl("https://sitioinstitucional.blob.core.windows.net/contenido-sitio/Aplicativos-internos/mktp/categories/contables.png"), UIControlState.Normal); //} }
public override UICollectionViewCell GetCell(UICollectionView collectionView, NSIndexPath indexPath) { Schemas.Category.CategoryInfo CellCategory = rows[indexPath.Row]; var cell = (CategoriaCellView)collectionView.DequeueReusableCell(CategoriaCellView.CellID, indexPath); cell.Layer.BorderColor = UIColor.LightGray.CGColor; cell.Layer.BorderWidth = 2.0f; cell.Layer.CornerRadius = 8; cell.updateCell(rows[indexPath.Row]); cell.SetCategory(CellCategory); return(cell); }
public void SetCategory(Schemas.Category.CategoryInfo Category) { this.CurrentCategory = Category; }