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);
        }
Beispiel #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);
        }
Beispiel #3
0
 abstract public void Show(MenuList menu);