private void AddPrintAppendixes(PageContent content, bool isLastPage) { AddBackground(content, isLastPage); AddSpecialElement(isLastPage, CurrentPageNumber, content, PrintAppendixes.Header, () => _printProcessor.GetHeader()); AddSpecialElement(isLastPage, CurrentPageNumber, content, PrintAppendixes.HeaderDescription, () => _printProcessor.GetHeaderDescription()); AddSpecialElement(isLastPage, CurrentPageNumber, content, PrintAppendixes.Summary, () => _printProcessor.GetSummary()); AddSpecialElement(isLastPage, CurrentPageNumber, content, PrintAppendixes.Footer, () => _printProcessor.GetFooter()); }
private void AddPrintAppendixes(PageContent content, int pageCount, bool isLastPage) { AddBackground(content, pageCount, isLastPage); AddSpecialElement(pageCount, isLastPage, content, PrintAppendixes.Header, new Lazy <UIElement>(() => _printProcessor.GetHeader())); AddSpecialElement(pageCount, isLastPage, content, PrintAppendixes.HeaderDescription, new Lazy <UIElement>(() => _printProcessor.GetHeaderDescription())); AddSpecialElement(pageCount, isLastPage, content, PrintAppendixes.Summary, new Lazy <UIElement>(() => _printProcessor.GetSummary())); AddSpecialElement(pageCount, isLastPage, content, PrintAppendixes.Footer, new Lazy <UIElement>(() => _printProcessor.GetFooter())); }