private void StopCurrentMenuProcedure() { if (HasMenuRunning()) { StackedMenu currentMenu = GetCurrentMenu(); currentMenu.Pause(); currentMenu.Stop(); } PopMenu(); if (HasMenuRunning()) { StackedMenu currentMenu = GetCurrentMenu(); currentMenu.Resume(); } }
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(); } }