public ShapeTable(ShapedStreamResult result) { // add each row of data foreach (IEnumerable <ShapeCellDto> r in result.Rows) { // make column headers if (this.Columns.Count == 0) { foreach (ShapeCellDto c in r) { this.Columns.Add(c.Value); } } // add new data row else { var newList = new List <string>(); foreach (ShapeCellDto c in r) { newList.Add(c.Value); } var newRow = this.Rows.Add(newList.ToArray()); } } }
// shaped table output public override void PrintData(ShapedStreamResult result) { var dt = new Table.ShapeTable(result); this.DataGridInstance = dt; // hide loading indicator this.StatusLabelVisible = false; }
// shaped table output public override void PrintData(ShapedStreamResult result) { this.ReturnValueInt = result.Rows.Count(); }
// shaped table output public override void PrintData(ShapedStreamResult result) { var dt = new Table.ShapeTable(result); this.PrintTable(dt); }
public abstract void PrintData(ShapedStreamResult result);