Beispiel #1
0
        private void GetTerminals()
        {
            var terminals = DbTerminal.GetAllTerminals();

            Terminals = new ObservableCollection <Terminal>();
            foreach (var terminal in terminals)
            {
                if (terminal.TerminalId != ChefmateController.Instance.CurrenTerminal.TerminalId && terminal.TerminalType != TerminalType.Runner)
                {
                    Terminals.Add(terminal);
                }
            }
        }
Beispiel #2
0
        private void LoadTerminals()
        {
            var terminals = DbTerminal.GetAllTerminals();

            _terminals.Add(new Terminal()
            {
                TerminalId = 0, DisplayName = "None"
            });
            _terminals.Add(new Terminal()
            {
                TerminalId = -1, DisplayName = "Printer"
            });
            terminals.ToList().ForEach(s =>
            {
                if (s.TerminalId != ChefmateController.Instance.CurrenTerminal.TerminalId)
                {
                    _terminals.Add(s);
                }
            });
        }