Esempio n. 1
0
        public CurrentAccount(string cardNumber, string cardPassword, Client client,
                              double thresholdAmount, PeriodHandingCashSurplus periodCashSurplus) : base(cardNumber, cardPassword, client)
        {
            _thresholdAmount      = thresholdAmount;
            _periodCashSurplus    = periodCashSurplus;
            _isHandingCashSurplus = _periodCashSurplus != PeriodHandingCashSurplus.None;
            _regularPayments      = new List <RegularPayment>();

            client.Accounts.Add(this);
        }
 internal CashSurplusViewModel()
 {
     _amount = (Account.IsHandingCashSurplus ? (int)Account.ThresholdAmount : 0);
     _period = (Account.IsHandingCashSurplus ? Account.PeriodCashSurplus : PeriodHandingCashSurplus.None);
 }