示例#1
0
        //delete
        public bool RemoveMenuItem(string name)
        {
            MenuList content = GetMenuNames(name);

            if (content == null)
            {
                return(false);
            }
            int initialCount = _menuLists.Count;

            _menuLists.Remove(content);

            if (initialCount > _menuLists.Count)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
示例#2
0
 //create
 public void AddMenuItem(MenuList content)
 {
     _menuLists.Add(content);
 }