示例#1
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     try
     {
         frmCustomerPaymentEntry fCustomerPayment = new frmCustomerPaymentEntry((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");
     }
 }
示例#2
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvCustomerPayment.CurrentRow != null)
         {
             SetSortedColumns();
             frmCustomerPaymentEntry fCustomerPayment = new frmCustomerPaymentEntry((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");
     }
 }