Exemplo n.º 1
0
        private void DateInformation()
        {
            var mdi = new DateInformationHandler(Year, Data);

            CellInformation  = mdi.DateInformations.ToDictionary(d => d.Key, d => d.Value as ICellInformation);
            MonthInformation = mdi.DateInformations.ToDictionary(d => d.Key, d => d.Value as IRemainingInformation);
        }
Exemplo n.º 2
0
        private void PreviousDecember()
        {
            var previousYear = Year - 1;
            var data         = new Data();

            data.Birthdays = Data.Birthdays;
            data.Events    = Data.Events.Select(e => (e.Date.AddYears(-1), e.Text, e.FilePath, e.Width, e.Height));
            new HolidayHandler(previousYear, data);
            new TeamDayHandler(previousYear, data);

            var mdi              = new DateInformationHandler(previousYear, data);
            var cellInformation  = mdi.DateInformations.ToDictionary(d => d.Key, d => d.Value as ICellInformation);
            var previousDecember = new PreviousDecember(previousYear, cellInformation);

            Document.NewPage();
            Document.Add(previousDecember);
        }