Example #1
0
        public static void Render(Page _page, DATA1 _data, DataRender_WhilePage_TrGroupFunc _dataRender_WhilePage_TrGroupFunc)
        {
            _page.tables = new List <Template.Table>();

            Page.TemplateInit(_page, _page.template, _page.tables);

            OuterDataRender outerDataRender = new OuterDataRender();

            outerDataRender.DataRender(_page, m => { return(new Pager(m.RecordsCount, m.TableSize)); }, new DataRender_WhilePageFunc(_page.DataRender_WhilePage), _dataRender_WhilePage_TrGroupFunc);
        }
Example #2
0
        public static void Render(Page _page, DATA2 _data, DataRender_WhilePage_TrGroupFunc _dataRender_WhilePage_TrGroupFunc)
        {
            _page.tables = new List <Template.Table>();

            Page.TemplateInit(_page, _page.template, _page.tables);

            OuterDataRender outerDataRender = new OuterDataRender();

            outerDataRender.DataRender(_page, m =>
            {
                var data2 = (DATA2)m;

                return(new Pager(data2[m.TemplateTableIndex]));
            }, new DataRender_WhilePageFunc(_page.DataRender_WhilePage), _dataRender_WhilePage_TrGroupFunc);
        }