Пример #1
0
        /// <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);
        }
Пример #2
0
 /// <summary>
 /// Adds a MenuItem row to the MenuItemRow attribute.
 /// </summary>
 /// <param name="row"></param>
 public void addMenuItemRow(MenuItemRow row)
 {
     Headers.Add(row);
 }