Пример #1
0
        public GridRowBuilderFactory(IGridTableBulderFactory tableBuilderFactory, IGridCellBuilderFactory cellBuilderFactory, IGridRowBuilderDecoratorProvider decoratorProvider)
        {
            this.tableBuilderFactory = tableBuilderFactory;
            this.cellBuilderFactory  = cellBuilderFactory;
            this.decoratorProvider   = decoratorProvider;

            BuilderRegistry = new Dictionary <GridItemType, Func <GridRenderingData, GridItem, IGridRowBuilder> > {
                { GridItemType.DataRow, CreateDataRowBuilder },
                { GridItemType.GroupRow, CreateGroupRowBuilder },
                { GridItemType.EditRow, CreateEditRowBuilder },
                { GridItemType.InsertRow, CreateInsertRowBuilder },
                { GridItemType.DetailRow, CreateDetailRowBuilder },
                { GridItemType.EmptyRow, CreateEmptyRowBuilder },
                { GridItemType.GroupFooterRow, CreateGroupFooterRowBuilder },
            };
        }
Пример #2
0
        public GridRowBuilderFactory(IGridTableBulderFactory tableBuilderFactory, IGridCellBuilderFactory cellBuilderFactory, IGridRowBuilderDecoratorProvider decoratorProvider)
        {
            this.tableBuilderFactory = tableBuilderFactory;
            this.cellBuilderFactory = cellBuilderFactory;
            this.decoratorProvider = decoratorProvider;

            BuilderRegistry = new Dictionary<GridItemType, Func<GridRenderingData, GridItem, IGridRowBuilder>>{
                { GridItemType.DataRow, CreateDataRowBuilder },
                { GridItemType.GroupRow, CreateGroupRowBuilder },
                { GridItemType.EditRow, CreateEditRowBuilder },
                { GridItemType.InsertRow, CreateInsertRowBuilder },
                { GridItemType.DetailRow, CreateDetailRowBuilder },
                { GridItemType.EmptyRow, CreateEmptyRowBuilder },
                { GridItemType.GroupFooterRow, CreateGroupFooterRowBuilder },
            };
        }