/// <summary> /// This method searches all menu Items for a menu item that the give row would fit in. /// If an applicable menu item is found, true is returned. /// </summary> /// <param name="row"></param> /// <param name="menuItems"></param> /// <returns></returns> static private bool findExistingMenuItem(MenuItemRow row, List <MenuItem> menuItems) { foreach (MenuItem menuItem in menuItems) { if (menuItem.getHeader().Name == row.Name) { return(true); } } return(false); }
/// <summary> /// Adds a MenuItem row to the MenuItemRow attribute. /// </summary> /// <param name="row"></param> public void addMenuItemRow(MenuItemRow row) { Headers.Add(row); }