示例#1
0
 public static HtmlBuilder ImageLibBody(
     this HtmlBuilder hb, SiteSettings ss, ImageLibData imageLibData)
 {
     return(hb.Div(
                attributes: new HtmlAttributes().Id("ImageLibBody"),
                action: () => imageLibData.DataRows
                .ForEach(dataRow => hb
                         .ImageLibItem(
                             ss: ss,
                             dataRow: dataRow))));
 }
示例#2
0
 public static HtmlBuilder ImageLib(
     this HtmlBuilder hb, SiteSettings ss, ImageLibData imageLibData)
 {
     return(hb.Div(
                attributes: new HtmlAttributes()
                .Id("ImageLib")
                .Class("both")
                .DataAction("ImageLibNext")
                .DataMethod("post"),
                action: () =>
                hb
                .Hidden(
                    controlId: "ImageLibOffset",
                    value: ss.ImageLibNextOffset(
                        0,
                        imageLibData.DataRows.Count(),
                        imageLibData.TotalCount)
                    .ToString())
                .ImageLibBody(
                    ss: ss,
                    imageLibData: imageLibData)));
 }