/* * CreateGroup */ /// <summary> /// </summary> /// <param name="menuItems"></param> /// <returns></returns> /// <exception cref="ArgumentNullException"> /// <para> /// <paramref name="menuItems"/> is <see langword="null"/>. /// </para> /// </exception> public INuGenMenuItemGroup CreateGroup(ToolStripMenuItem[] menuItems) { if (menuItems == null) { throw new ArgumentNullException("menuItems"); } INuGenMenuItemGroup group = new NuGenMenuItemGroup(); for (int i = 0; i < menuItems.Length; i++) { group.Items.Add(menuItems[i]); } return(group); }
/// <summary> /// </summary> /// <exception cref="ArgumentNullException"><para><paramref name="menuItems"/> is <see langword="null"/>.</para></exception> public INuGenMenuItemGroup CreateGroup(ToolStripMenuItem[] menuItems) { if (menuItems == null) { throw new ArgumentNullException("menuItems"); } INuGenMenuItemGroup group = new NuGenMenuItemGroup(); for (int i = 0; i < menuItems.Length; i++) { group.Items.Add(menuItems[i]); } return group; }