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