public static MenuList GetCurrencies() { Dictionary <int, ICurrency> currencies = CashRegister.DataConnector.GetCurrencies(); MenuList menu = new MenuList(); foreach (int key in currencies.Keys) { menu.Add(new CurrencyPaymentInfo(currencies[key])); } return(menu); }
public static MenuList GetCredits() { Dictionary <int, ICredit> credits = CashRegister.DataConnector.GetCredits(); MenuList menu = new MenuList(); foreach (int key in credits.Keys) { menu.Add(new CreditPaymentInfo(credits[key])); } return(menu); }