Exemplo n.º 1
0
 private void btnNewReport_Click(object sender, EventArgs e)
 {
     ReportForm newReportForm = new ReportForm(this);
     newReportForm.Visible = true;
 }
Exemplo n.º 2
0
        private void reportsView_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            Console.WriteLine("Clicked ReportsTable on Row: " + e.RowIndex);
            if (e.RowIndex != -1)
            {

                Report r = ReportService.FindById<Report>(Convert.ToInt64(reportsView.Rows[e.RowIndex].Cells[0].Value));
                if (e.ColumnIndex == 9)
                {
                    ReportForm reportForm = new ReportForm(this);
                    reportForm.setReport(r);
                    reportForm.Visible = true;
                }
                else if (e.ColumnIndex == 8)
                {
                    Simplifier.delete(r);
                }
                refreshView();

            }
        }