示例#1
0
文件: Compte.cs 项目: cddev/MaBanque
 public void Crediter(double montant)
 {
     Solde += montant;
     Transaction trans = new Transaction(montant, TypeTransaction.Debit);
     Transactions.Add(trans);
     OnMonAudit(trans);
 }
示例#2
0
文件: Compte.cs 项目: cddev/MaBanque
 public virtual bool Debiter(double montant)
 {
     bool reussite = false;
     if (montant<=Solde)
     {
         Solde -= montant;
         reussite = true;
         Transaction trans = new Transaction(montant, TypeTransaction.Debit);
         Transactions.Add(trans);
         OnMonAudit(trans);
     }
     return reussite;
 }
示例#3
0
文件: Compte.cs 项目: cddev/MaBanque
 private void OnMonAudit(Transaction trans)
 {
     if (MonAudit!=null)
     {
         MonAudit(this, new MonAuditEventArgs(this.Numero,trans.ToString()));
     }
 }