Пример #1
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     try
     {
         frmCurrencyEntry fCustomer = new frmCurrencyEntry((int)Constant.Mode.Insert, 0);
         fCustomer.ShowInTaskbar = false;
         fCustomer.ShowDialog();
         LoadList();
     }
     catch (Exception exc)
     {
         Utill.Common.ExceptionLogger.writeException("Employee", exc.StackTrace);
         MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception");
     }
 }
Пример #2
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvEmployee.CurrentRow != null)
         {
             SetSortedColumns();
             frmCurrencyEntry fCustomer = new frmCurrencyEntry((int)Constant.Mode.Delete, (Int64)dgvEmployee.CurrentRow.Cells["CurrencyID"].Value);
             fCustomer.ShowDialog();
             setDefaultGridRecords(sender, e);
         }
     }
     catch (Exception exc)
     {
         Utill.Common.ExceptionLogger.writeException("Employee-List", exc.StackTrace);
         MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception");
     }
 }