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