Beispiel #1
0
        private Table CreateTable()
        {
            var table = new Table();

            table.AddColumn(new Table.ColumnHeader());
            foreach (var day in _period.EnumerateDays())
            {
                table.AddColumn(new Table.ColumnHeader
                {
                    Value      = day,
                    Name       = day.Day.ToString(),
                    Subheaders = { day.DayOfWeek.ToString().Substring(0, 1).ToUpper() }
                });
            }

            return(table);
        }