// IDataParser public void ParseDataObject <T>(SparkLib.DataObject <T> data) { SetColumns(data.fieldNames.Length); SetRows(data.Count); int col = 0; foreach (string name in data.fieldNames) { SetColumnTitle(name, col); col++; } int row = 1; foreach (T obj in data) { col = 0; object[] valueList = data.GetEntryData(row - 1); foreach (object value in valueList) { Node ColNode = ColumnsNode !.GetChild(BASECOLUMNIDX + col); ColNode.GetChild <LineEdit>(row).Text = value.ToString(); col++; } row++; } }
public void LoadData <T>(SparkLib.DataObject <T> data) { ParseDataObject <T>(data); }