public void addMenu(string menuName, IMenuType menuToAdd) { if (MenuNames.Contains(menuName)) { return; } Menus.Add(menuName, menuToAdd); MenuNames.Push(menuName); CurrentMenu = menuToAdd; }
public bool menuExists(string menuName) => MenuNames.Contains(menuName);