예제 #1
0
        public void Menu()
        {
            var choose = 0;

            while (true)
            {
                InputMenu();
                choose = Convert.ToInt32(_inputOutput.OutputMessage(">>"));
                switch (choose)
                {
                case 0:
                {
                    Environment.Exit(0);
                    break;
                }

                case 1:
                {
                    _stationConsole.ContractManager.NewContract();
                    break;
                }

                case 2:
                {
                    InputTerminals();
                    var terminal = _stationConsole.Terminals[Convert.ToInt32(_inputOutput.OutputMessage(">>"))];
                    TerminalMenu(terminal);
                    break;
                }

                default:
                    throw new ArgumentOutOfRangeException();
                }
            }
        }