Ejemplo n.º 1
0
        void documentBW_DoWork(object sender, DoWorkEventArgs e)
        {
            var pdfGenerator   = new PDFGenerator();
            var excelGenerator = new ExcelGenerator();

            loggerHasStarted = pdfGenerator.CreatePDF(loggerInformation);
            loggerHasStarted = excelGenerator.CreateExcel(loggerInformation);
        }
Ejemplo n.º 2
0
        void previewPanelBW_DoWork(object sender, DoWorkEventArgs e)
        {
            var pdfGenerator   = new PDFGenerator();
            var excelGenerator = new ExcelGenerator();

            loggerHasStarted = pdfGenerator.CreatePDF(loggerInformation);
            if (loggerHasStarted)
            {
                excelGenerator.CreateExcel(loggerInformation);
            }
        }