Exemplo n.º 1
0
 private void CloseAllDropDown()
 {
     foreach (QMenuItem item in DisplayedItems.OfType <QMenuItem>().Where(item => item.Selected))
     {
         if (item.HasDropDownItems && item.DropDown.Visible)
         {
             item.HideDropDown();
         }
         miUnselect.Invoke(item, null);
         break;
     }
 }
Exemplo n.º 2
0
 private T[] DisplayedItemsOfType <T>()
 {
     return(DisplayedItems.OfType <T>().ToArray());
 }