Пример #1
0
        private void AppLoop()
        {
            while (true)
            {
                Clear();
                switch (_currentView)
                {
                case View.Main:
                    MainMenuView.ShowMainMenu();
                    _currentView = MainMenuView.MainMenuSelection(UserInput.OptionSelection());
                    break;

                case View.Stats:
                    StatsView.ShowStats();
                    _currentView = StatsView.StatsSelection();
                    break;

                case View.AddDay:
                    AddDayView.ShowAddDay();
                    _currentView = AddDayView.AddDaySelection();
                    break;

                case View.Options:
                    OptionsView.ShowOptions();
                    _currentView = OptionsView.OptionsSelection();
                    break;

                default:
                    WriteLine("Invalid input.");
                    MainMenuView.MainMenuSelection(UserInput.OptionSelection());
                    break;
                }
            }
        }