Exemplo n.º 1
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     try
     {
         frmCustomerPaymentReturnEntry fCustomerPayment = new frmCustomerPaymentReturnEntry((int)Constant.Mode.Insert, 0);
         fCustomerPayment.ShowInTaskbar = false;
         fCustomerPayment.ShowDialog();
         btnClear_Click(sender, e);
         LoadList();
     }
     catch (Exception exc)
     {
         Utill.Common.ExceptionLogger.writeException("Customer Payment - List", exc.StackTrace);
         MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception");
     }
 }
Exemplo n.º 2
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvCustomerPayment.CurrentRow != null)
         {
             SetSortedColumns();
             frmCustomerPaymentReturnEntry fCustomerPayment = new frmCustomerPaymentReturnEntry((int)Constant.Mode.Delete, Convert.ToInt64(dgvCustomerPayment.CurrentRow.Cells["ReceiptID"].Value));
             fCustomerPayment.ShowInTaskbar = false;
             fCustomerPayment.ShowDialog();
             setDefaultGridRecords(sender, e);
         }
     }
     catch (Exception exc)
     {
         Utill.Common.ExceptionLogger.writeException("Customer Payment - List", exc.StackTrace);
         MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception");
     }
 }