Esempio n. 1
0
 public void AddChild(MenuItemBase child, IComparer<MenuItemBase> menuItemComparer = null)
 {
     Children.Add(child);
     if (menuItemComparer != null)
     {
         Children.Sort(menuItemComparer);
     }
 }
Esempio n. 2
0
 public bool RemoveChild(MenuItemBase child)
 {
     return Children.Remove(child);
 }