コード例 #1
0
 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;
 }
コード例 #2
0
        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);
        }