private void CreateNewSQLReport_Click(object sender, EventArgs e)
        {
            FormSQLReport form = new FormSQLReport();

            if ((form.ShowDialog() == DialogResult.OK) && (form.SQLString != null))
            {
                ReportsWorkItemController wiController = (ReportsWorkItemController)workItem.Controller;
                wiController.RunSQLReport(form.ReportName, form.SQLString);
                RefreshView();
            }
        }
        private void bnEditSQLReport_Click(object sender, EventArgs e)
        {
            if (cmbSQLReports.SelectedValue == null)
            {
                return;
            }

            FormSQLReport form = new FormSQLReport(Convert.ToInt32(cmbSQLReports.SelectedValue));

            if (form.ShowDialog() == DialogResult.OK)
            {
                ReportsWorkItemController wiController = (ReportsWorkItemController)workItem.Controller;
                wiController.RunSQLReport(form.ReportName, form.SQLString);
            }
        }