Пример #1
0
    // Private Functions

    private void _SelectMenu(MainMenuStates SelectedType)
    {
        MenuState NewSelectedMenuState = _GetMenuStateByType(SelectedType);

        if (NewSelectedMenuState != null)
        {
            MenuState CurrentSelectedMenuState = _GetMenuStateByType(_CurrentMainMenuState);
            if (CurrentSelectedMenuState != null)
            {
                CurrentSelectedMenuState.ShowMenuPanel(false);
            }
            NewSelectedMenuState.ShowMenuPanel(true);

            _PreviousMainMenuState = _CurrentMainMenuState;
            _CurrentMainMenuState  = SelectedType;
        }
    }