// Extracts a list of all submenus public static string[] GetSubmenusIncludingSeparators(string menuPath) { var menuItems = Menu.GetMenuItems(menuPath, true, false); var paths = new string[menuItems.Length]; for (int i = 0, c = paths.Length; i < c; ++i) { paths[i] = menuItems[i].path; } return(paths); }
// Extracts a list of all submenus that can be executed internal static string[] GetSubmenusLocalized(string menuPath) { var menuItems = Menu.GetMenuItems(menuPath, false, true); var paths = new string[menuItems.Length]; for (int i = 0, c = paths.Length; i < c; ++i) { paths[i] = menuItems[i].path; } return(paths); }