Example #1
0
        private Page CreatePageOf(List<DataRecord> dataRecords, int pageSize)
        {
            var page = new Page(new PageConsoleFormatter(new MaxConsoleColumnLengthsIdentifier()));
            page.Add(Header);

            foreach (DataRecord dataRecord in dataRecords.Take(pageSize))
                page.Add(dataRecord);

            return page;
        }
 public virtual void Show(Page page)
 {
     Console.Out.Write(page.Header());
     Console.Out.Write(page.DataRecords());
 }