Пример #1
0
        private void outputButton_Click(object sender, EventArgs e)
        {
            //Uncomment these lines to randomly generate events every button click.
            RandomEventGenerator reg = new RandomEventGenerator(DateTime.Now, this.sqlCmd, this.sqlRdr);
            reg.insertRecords(5);

            ReportGenerator rg = new ReportGenerator(this.sqlCmd, this.sqlRdr);
            if (htmlButton.Checked)
            {
                rg.generateHTMLReport();
                status.Text = "Generated HTML Report.";
            }
            else if (csvButton.Checked)
            {
                rg.generateCSV();
                status.Text = "Saved in Project Folder. Opening...";
            }
        }
Пример #2
0
        private void outputButton_Click(object sender, EventArgs e)
        {
            //Uncomment these lines to randomly generate events every button click.
            RandomEventGenerator reg = new RandomEventGenerator(DateTime.Now, this.sqlCmd, this.sqlRdr);

            reg.insertRecords(5);

            ReportGenerator rg = new ReportGenerator(this.sqlCmd, this.sqlRdr);

            if (htmlButton.Checked)
            {
                rg.generateHTMLReport();
                status.Text = "Generated HTML Report.";
            }
            else if (csvButton.Checked)
            {
                rg.generateCSV();
                status.Text = "Saved in Project Folder. Opening...";
            }
        }