示例#1
0
 public void UpdateDropBoxData(DropBoxData.DropBoxRow dropBoxContent)
 {
     if (dropBoxContent.Title != null)
     {
         Title.Text = $"Title: {dropBoxContent.Title}";
     }
     if (dropBoxContent.Description != null)
     {
         Description.Text = $"Description: {dropBoxContent.Description}";
     }
     if (dropBoxContent.ImageHref != null)
     {
         try
         {
             if (Imageview.Image == null)
             {
                 Imageview.Image = dropBoxContent.ImageHref.FromCollectionViewUrl();
             }
         }
         catch (Exception ex)
         {
             Imageview.Image = UIImage.FromBundle("Defaultimg");
         }
     }
     Title.TextColor       = UIColor.DarkTextColor;
     Description.TextColor = UIColor.DarkTextColor;
 }
示例#2
0
 public void UpdateDropBoxData(DropBoxData.DropBoxRow dropBoxContent)
 {
     if (dropBoxContent.Title != null)
     {
         TitleLbl.Text = $"Title: {dropBoxContent.Title}";
     }
     if (dropBoxContent.Description != null)
     {
         DecriptionLbl.Text = $"Description: {dropBoxContent.Description}";
     }
     if (dropBoxContent.ImageHref != null)
     {
         try
         {
             if (Imageview.Image == null)
             {
                 Imageview.Image = dropBoxContent.ImageHref.FromUrlTableCell();
             }
         }
         catch (Exception ex)
         {
             Imageview.Image = UIImage.FromBundle("Noimage.jpg");
         }
     }
     TitleLbl.TextColor      = UIColor.DarkTextColor;
     DecriptionLbl.TextColor = UIColor.DarkTextColor;
 }