public override void Deposit(decimal amount)
 {
     _original.Deposit(amount);
     _original.Withdraw((decimal)Commission * amount);
 }
示例#2
0
 public bool Withdraw(decimal amount)
 {
     return(account.Withdraw(amount));
 }
        public override void Withdraw(decimal amount)
        {
            _original.Withdraw(amount);

            Logger.WriteLine("{0}: Withdraw {1}", AccountNumber, amount);
        }