Exemplo n.º 1
0
        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]) : "";
        }