public AppHandlerBase() { menus = null; userInput = string.Empty; mainMenu = null; currentMenu = null; menuIndexStack = new Stack<int>(); isReEntry = false; }
public bool ChangeCurrentMenu(int indexOfNewCurrent) { bool changeResult = false; foreach (MenuList item in menus) { if (item.Index == indexOfNewCurrent) { if ((CurrentMenu != null) && (CurrentMenu.KeepLooping)) { MenuIndexStack.Push(CurrentMenu.Index); } currentMenu = item; continue; } } return changeResult; }
public void SetMenus() { menus = SetAllMenus(); if (menus != null) { mainMenu = menus[0]; ChangeCurrentMenu(0); } }