Ejemplo n.º 1
0
        private void btnGeneratePDFMusicCDs_Click(object sender, EventArgs e)
        {
            List <ItemToPurchaseClass> list   = dbHelper.getMostBoughtItems("MusicCDs");
            ReportGeneratorClass       report = new ReportGeneratorClass();

            report.generate(list, ReportGeneratorClass.ReportType.BestSellerMusicCDs);
        }
Ejemplo n.º 2
0
        private void btnGeneratePDFRichestCustomers_Click(object sender, EventArgs e)
        {
            List <ItemToPurchaseClass> list   = dbHelper.getMostBoughtItems("Book");
            ReportGeneratorClass       report = new ReportGeneratorClass();

            report.generate(list, ReportGeneratorClass.ReportType.BestSellerBooks);
        }