Exemplo n.º 1
0
 void CreateTextRow(IThumbNailItem item, RequestTextThumbnailItemEventArgs requestTextThumbnailItemEventArgs, Table table)
 {
     TableCell cell = CreateTextCell(item, requestTextThumbnailItemEventArgs);
     table.Rows.Add(new TableRow());
     table.Rows[1].Cells.Add(cell);
 }
Exemplo n.º 2
0
 void SetImageProperties(IThumbNailItem item, System.Web.UI.WebControls.Image img, string noImageUrl, string text)
 {
     img.AlternateText = text;
     if (item.Image != null) {
         img.ImageUrl = HttpContext.Current.Request.Url.AbsoluteUri + "&loadimage=" + item.ID;
     }
     else if (!(string.IsNullOrEmpty(item.ImagePath))) {
         img.ImageUrl = item.ImagePath;
     }
     else {
         img.ImageUrl = noImageUrl;
     }
 }
Exemplo n.º 3
0
 TableCell CreateTextCell(IThumbNailItem item, RequestTextThumbnailItemEventArgs requestTextThumbnailItemEventArgs)
 {
     var cell = new TableCell();
     cell.Style["font-size"] = "80%";
     cell.Style["text-align"] = "center";
     cell.Style["word-wrap"] = "break-word";
     cell.Style["word-break"] = "break-word";
     string text1 = string.Format("<a href='{0}&{3}={1}'>{2}</a>",
                                  HttpContext.Current.Request.Url.AbsoluteUri, item.ID, requestTextThumbnailItemEventArgs.Text, ThumbnailListEditor.SelectedId);            
     var text = new Literal { Text = text1 };
     cell.Controls.Add(text);
     return cell;
 }
 public RequestTextThumbnailItemEventArgs(IThumbNailItem itemClicked)
     : base(itemClicked)
 {
 }
Exemplo n.º 5
0
 string GetDisplayText(IThumbNailItem pictureItem)
 {
     string text = ShownProperties.Aggregate("", (current, property) => current + (ObjectTypeInfo.FindMember(property).GetValue(pictureItem) + "<br>"));
     return text.TrimEnd("<br>".ToCharArray());
 }
Exemplo n.º 6
0
 public ThumbnailItemEventArgs(IThumbNailItem itemClicked)
 {
     ItemClicked = itemClicked;
 }