Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }