public override void StructTable() { if (BkTable != null) { return; } BkTable = new GRTable <BookDisplay>(BookDisplay.GetHeaders()); BkTable.Cell = (i, x) => BkTable.ColEnabled(i) ? ColumnName(BkTable.CellProps[i]) : ""; }
public override void StructTable() { Type NVType = typeof(NameValue <string>); List <IGRCell> Headers = new List <IGRCell>(); Headers.Add(new GRCell <NameValue <string> >(NVType.GetProperty("Name"))); Headers.Add(new GRCell <NameValue <string> >(NVType.GetProperty("Value"))); ConvTable = new GRTable <NameValue <string> >(Headers); ConvTable.Cell = (i, x) => ConvTable.ColEnabled(i) ? ColumnName(ConvTable.CellProps[i]) : ""; }
public override void StructTable() { if (ZSTable != null) { return; } List <IGRCell> ZSProps = new List <IGRCell>(); Type StringType = typeof(string); ZSProps.AddRange( typeof(IMetaSpider).GetProperties() .Where(x => x.PropertyType == StringType) .Remap(p => new GRCell <IMetaSpider>(p)) ); ZSTable = new GRTable <IMetaSpider>(ZSProps); ZSTable.Cell = (i, x) => ZSTable.ColEnabled(i) ? ColumnName(ZSTable.CellProps[i]) : ""; }
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]) : ""; }