예제 #1
0
        public void InsertSubItem(MenuItem item, int index)
        {
            if (index < 0 || index > ChildItems.Count)
            {
                throw new IndexOutOfRangeException();
            }

            ChildItems.InsertItem(index, item);
        }
예제 #2
0
 public void AddSubItem(MenuItem item)
 {
     ChildItems.Add(this, item);
 }