Beispiel #1
0
 private void btnAddNewFinYear_Click(object sender, EventArgs e)
 {
     try
     {
         frmAddEditFinYear frm = new frmAddEditFinYear();
         if (frm.ShowDialog() == DialogResult.OK)
         {
             PopulateFinYears();
         }
     }
     catch (Exception ex)
     {
         string errMessage = string.Format("{0}\n{1}", ex.Message, ex.InnerException.Message);
         MessageBox.Show(errMessage, "PageFinYear::btnAddNewFinYear_Click", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Beispiel #2
0
 private void btnEditFinYear_Click(object sender, EventArgs e)
 {
     try
     {
         frmAddEditFinYear frm = new frmAddEditFinYear(this.SelectedFinYearID);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             PopulateFinYears();
         }
     }
     catch (Exception ex)
     {
         string errMessage = ex.Message;
         if (ex.InnerException != null)
         {
             errMessage += string.Format("\n{0}", ex.InnerException.Message);
         }
         MessageBox.Show(errMessage, "PageFinYear::btnEditFinYear_Click", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }