void CreateTextRow(IThumbNailItem item, RequestTextThumbnailItemEventArgs requestTextThumbnailItemEventArgs, Table table) { TableCell cell = CreateTextCell(item, requestTextThumbnailItemEventArgs); table.Rows.Add(new TableRow()); table.Rows[1].Cells.Add(cell); }
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; } }
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) { }
string GetDisplayText(IThumbNailItem pictureItem) { string text = ShownProperties.Aggregate("", (current, property) => current + (ObjectTypeInfo.FindMember(property).GetValue(pictureItem) + "<br>")); return text.TrimEnd("<br>".ToCharArray()); }
public ThumbnailItemEventArgs(IThumbNailItem itemClicked) { ItemClicked = itemClicked; }