Beispiel #1
0
 private void accountLedgerToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         if (dgvAccount.CurrentRow != null)
         {
             frmLedgerReport fLedger = new frmLedgerReport((long)dgvAccount.CurrentRow.Cells["AccountID"].Value, 1);
             fLedger.Show();
         }
         else
         {
             frmLedgerReport fLedger = new frmLedgerReport(0, 1);
             fLedger.Show();
         }
     }
     catch (Exception exc)
     {
         Utill.Common.ExceptionLogger.writeException("AccountLedger - Ledger", exc.StackTrace);
         MessageBox.Show(Utill.Common.CommonMessage.ExceptionMesg, "Exception");
     }
 }