Esempio n. 1
0
 public MenuItem(string label, Image image, EventHandler clicked, params MenuItem[] subItems)
     : this(label, image, clicked)
 {
     SubMenu = new Menu();
     for (int i = 0; i < subItems.Length; i++)
     {
         SubMenu.InsertItem(i, subItems[i]);
     }
 }
 protected override void InsertItem(int index, MenuItem item)
 {
     base.InsertItem(index, item);
     parent.InsertItem(index, item);
 }