private void AddReport() { ReportDialog reportDialog = new ReportDialog(); DialogResult reportDialogResult = reportDialog.ShowDialog(); if (reportDialogResult == DialogResult.OK) { BuildReportList(); Settings.Instance.SaveSettings(); } reportDialog.Dispose(); CheckButtons(); }
private void OpenEditReportDialog() { if (Lv_BillingReportList.SelectedItems.Count > 0) { int reportSelection = Lv_BillingReportList.SelectedIndices[0]; ReportDialog reportDialog = new ReportDialog(reportSelection); DialogResult reportDialogResult = reportDialog.ShowDialog(); if (reportDialogResult == DialogResult.OK) { BuildReportList(); Lv_BillingReportList.Items[reportSelection].Selected = true; Settings.Instance.SaveSettings(); } reportDialog.Dispose(); } }
private void OpenEditReportDialog() { if (Lv_BillingReportList.SelectedItems.Count > 0) { int reportSelection = Lv_BillingReportList.SelectedIndices[0]; ReportDialog reportDialog = new ReportDialog(reportSelection); DialogResult reportDialogResult = reportDialog.ShowDialog(); if (reportDialogResult == DialogResult.OK) { BuildReportList(); Lv_BillingReportList.Items[reportSelection].Selected = true; Settings.Instance.SaveSettings(); } reportDialog.Dispose(); } }
private void AddReport() { ReportDialog reportDialog = new ReportDialog(); DialogResult reportDialogResult = reportDialog.ShowDialog(); if (reportDialogResult == DialogResult.OK) { BuildReportList(); Settings.Instance.SaveSettings(); } reportDialog.Dispose(); CheckButtons(); }