public Column AddImageColumn(string header = null, string footer = null, int imageWidth = 32, int imageHeight = 32) { if (this.headerDatum == null) { this.headerDatum = Datum.Header(); this.headerDatum.table = this; } if (this.footerDatum == null) { this.footerDatum = Datum.Footer(); this.footerDatum.table = this; } this.headerDatum.elements.Add(); this.footerDatum.elements.Add(); Column c = Column.ImageColumn(this, this.columns.Count, imageWidth, imageHeight, this.headerDatum, this.footerDatum); this.columns.Add(c); c.headerValue = header; c.footerValue = footer; return(c); }
private Column AddTextOrInputColumn(string header = null, string footer = null, float minWidth = -1, float maxWidth = -1, bool isInput = false) { if (this.headerDatum == null) { this.headerDatum = Datum.Header(); this.headerDatum.table = this; } if (this.footerDatum == null) { this.footerDatum = Datum.Footer(); this.footerDatum.table = this; } this.headerDatum.elements.Add(); this.footerDatum.elements.Add(); Column c = Column.TextColumn(this, this.columns.Count, minWidth, maxWidth, this.headerDatum, this.footerDatum, isInput); this.columns.Add(c); c.headerValue = header; c.footerValue = footer; return(c); }
private Datum MakeData(bool isHeader = false, bool isFooter = false) { float i = Time.realtimeSinceStartup; Datum d; if (isHeader) { d = Datum.Header(); } else if (isFooter) { d = Datum.Footer(); } else { d = Datum.Body(i.ToString()); } for (int j = 0; j < table.columns.Count; j++) { d.elements.Add(j.ToString() + "_" + i.ToString()); } return(d); }