public static IState Instance(Number amount) { input = amount; MenuList list = new MenuList(); list.Add(new CheckPaymentInfo()); list.AddRange(CurrencyPaymentInfo.GetCurrencies()); list.AddRange(CreditPaymentInfo.GetCredits()); States.List.Instance(list); return(state); }
public override void Pay(CurrencyPaymentInfo info) { paymentInfo = info; MenuList tempCurrencies = CurrencyPaymentInfo.GetCurrencies(); MenuList currencies = new MenuList(); foreach (CurrencyPaymentInfo cpi in tempCurrencies) { CurrencyPaymentInfo currency = (CurrencyPaymentInfo)cpi.Clone(); currency.Amount = input.ToDecimal(); currencies.Add(currency); } paymentInfo.Amount = 0; input = new Number(); promoDocument = null; cr.State = ListCurrencies.Instance(currencies, new ProcessSelectedItem <CurrencyPaymentInfo>(PayByForeignCurrency)); }