Exemplo n.º 1
0
 protected void OnAuditingTransaction(BankTransaction bankTrans)
 {
     if (this.AuditingTransaction != null)
     {
         AuditEventArgs auditTrans = new AuditEventArgs(bankTrans);
         this.AuditingTransaction(this, auditTrans);
     }
 }
Exemplo n.º 2
0
        public void RecordTransaction(object sender, AuditEventArgs eventData)
        {
            BankTransaction tempTrans = eventData.getTransaction();

            if (tempTrans != null)
            {
                this.auditFile.WriteLine("Amount: {0}\tDate: {1}", tempTrans.Amount(), tempTrans.When());
            }
        }