public static void DrawMenu(Menu menu)
        {
            if (menu.GetType() == typeof(ListItemMenu))
                menu = menu  as ListItemMenu;

            Draw(menu);
            if (menu.Buttons.Count > 0)
                Draw(menu.Buttons);
            if (menu.TextButtons.Count > 0)
            {
                Draw(menu.TextButtons);
                DrawText(menu.TextButtons);
            }
        }
        private void ChangeActiveMenu(Func<Menu> menuFunction)
        {
            if (menuFunction == null)
                return;

            if (menuFunction == CurrentMenu)
                return;

            ChangeNavOrder(menuFunction);
            activeMenu = menuFunction();
        }
 public void Nav_PreviousMenu()
 {
     CurrentMenu = previousMenus.Pop();
     activeMenu = CurrentMenu();
 }