Beispiel #1
0
 private void btnNew_Click(object sender, EventArgs e)
 {
     try
     {
         frmVendorPaymentEntry fVendorPayment = new frmVendorPaymentEntry((int)Constant.Mode.Insert, 0);
         fVendorPayment.ShowInTaskbar = false;
         fVendorPayment.ShowDialog();
         btnClear_Click(sender, e);
         LoadList();
     }
     catch (Exception exc)
     {
         Utill.Common.ExceptionLogger.writeException("Vendor Payment - List", exc.StackTrace);
         MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception");
     }
 }
Beispiel #2
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvVendorPayment.CurrentRow != null)
         {
             SetSortedColumns();
             frmVendorPaymentEntry fVendorPayment = new frmVendorPaymentEntry((int)Constant.Mode.Delete, Convert.ToInt64(dgvVendorPayment.CurrentRow.Cells["PaymentID"].Value));
             fVendorPayment.ShowInTaskbar = false;
             fVendorPayment.ShowDialog();
             setDefaultGridRecords(sender, e);
         }
     }
     catch (Exception exc)
     {
         Utill.Common.ExceptionLogger.writeException("Vendor Payment - List", exc.StackTrace);
         MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception");
     }
 }