Beispiel #1
0
        private void AddReport()
        {
            ReportDialog reportDialog       = new ReportDialog();
            DialogResult reportDialogResult = reportDialog.ShowDialog();

            if (reportDialogResult == DialogResult.OK)
            {
                BuildReportList();
                Settings.Instance.SaveSettings();
            }
            reportDialog.Dispose();
            CheckButtons();
        }
Beispiel #2
0
 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();
     }
 }
Beispiel #3
0
 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();
     }
 }
Beispiel #4
0
 private void AddReport()
 {
     ReportDialog reportDialog = new ReportDialog();
     DialogResult reportDialogResult = reportDialog.ShowDialog();
     if (reportDialogResult == DialogResult.OK)
     {
         BuildReportList();
         Settings.Instance.SaveSettings();
     }
     reportDialog.Dispose();
     CheckButtons();
 }