예제 #1
0
        private void StopCurrentMenuProcedure()
        {
            if (HasMenuRunning())
            {
                StackedMenu currentMenu = GetCurrentMenu();
                currentMenu.Pause();
                currentMenu.Stop();
            }

            PopMenu();

            if (HasMenuRunning())
            {
                StackedMenu currentMenu = GetCurrentMenu();
                currentMenu.Resume();
            }
        }
예제 #2
0
        private void StartMenuProcedure(Menu menu, params object[] parameters)
        {
            if (HasMenuRunning())
            {
                StackedMenu currentMenu = GetCurrentMenu();
                currentMenu.Pause();
            }

            PushMenu(menu);

            if (HasMenuRunning())
            {
                StackedMenu currentMenu = GetCurrentMenu();
                currentMenu.Start(menuStack.Count, parameters);
                currentMenu.Resume();
            }
        }