Пример #1
0
        public virtual bool Withdraw(CurrencyType currency, int amount)
        {
            if (currency == Currency)
            {
                amount -= amount / Value * Value;
            }

            if (amount == 0)
            {
                return(true);
            }

            return(_nextHandler != null && _nextHandler.Withdraw(currency, amount));
        }
Пример #2
0
 public bool Withdraw(CurrencyType currency, int amount)
 {
     return(_handler.Withdraw(currency, amount));
 }