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; } }
private T[] DisplayedItemsOfType <T>() { return(DisplayedItems.OfType <T>().ToArray()); }