示例#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);
        }
示例#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);
        }