예제 #1
0
        /// <summary>
        /// Adds a cell to <see cref="Cells"/> and returns it.
        /// </summary>
        /// <returns>The new cell.</returns>
        public DashboardTableCell AddCell
        (
            IDashboardContent content   = null,
            DashboardTableCellType?type = null
        )
        {
            // Create the cell and set the type depending on whether we're in a header row.
            var cell = new DashboardTableCell()
            {
                DashboardTableCellType = type.HasValue
                                ? type.Value
                                : this.DashboardTableRowType == DashboardTableRowType.Header
                                        ? DashboardTableCellType.Header
                                        : DashboardTableCellType.Standard,
                InnerContent = content
            };

            this.Cells.Add(cell);
            return(cell);
        }
 public DashboardCustomContentEx(string htmlContent)
 {
     this.InnerContent = new DashboardCustomContent(htmlContent);
 }
 public DashboardCustomContentEx(IDashboardContent innerContent)
 {
     this.InnerContent = innerContent;
 }
예제 #4
0
 public DashboardTableCell(IDashboardContent innerContent)
     : this()
 {
     this.InnerContent = innerContent;
 }