public override string ColumnName(IGRCell CellProp) { if (CellProp.Property.Name == "Result") { return(TableHeaderSource.Result); } return(ColumnNameResolver.FTSColumns(CellProp.Property.Name)); }
public override void StructTable() { if (MatchTable != null) { return; } List <IGRCell> PsProps = new List <IGRCell>(); Type StringType = typeof(string); PsProps.AddRange( typeof(FTSResult).GetProperties() .Where(x => x.PropertyType == StringType) .Remap(p => new GRCell <FTSResult>(p)) ); MatchTable = new GRTable <FTSResult>(PsProps); TableHeaderSource = new FTSResult(-1, ColumnNameResolver.FTSColumns("Result")); MatchTable.Source = TableHeaderSource; MatchTable.Cell = (i, x) => MatchTable.ColEnabled(i) ? ColumnName(MatchTable.CellProps[i]) : ""; }