private static ToolStripMenuItem[] GetMenuItems(DesignerVerbCollection verbs) { var menuItems = new ToolStripMenuItem[verbs.Count]; for (int i = 0; i < menuItems.Length; i++) { menuItems[i] = new DesignerToolStripMenuItem(verbs[i].Text, verbs[i]); } return menuItems; }
private static ToolStripMenuItem[] GetMenuItems(DesignerVerbCollection verbs) { var menuItems = new ToolStripMenuItem[verbs.Count]; for (int i = 0; i < menuItems.Length; i++) { menuItems[i] = new DesignerToolStripMenuItem(verbs[i].Text, verbs[i]); } return(menuItems); }