public static void CreateGroupItems(ToolStripDropDownItem dropDownItem) { QTUtility.RefreshGroupsDic(); if (QTUtility.GroupPathsDic.Count > 0) { dropDownItem.Enabled = true; DropDownMenuReorderable dropDown = (DropDownMenuReorderable)dropDownItem.DropDown; while (dropDown.Items.Count > 0) { dropDown.Items[0].Dispose(); } dropDown.ItemsClear(); string key = "groups"; foreach (string str2 in QTUtility.GroupPathsDic.Keys) { string str3 = QTUtility.GroupPathsDic[str2]; string path = str3.Split(QTUtility.SEPARATOR_CHAR)[0]; if (str3.Length == 0) { dropDown.AddItem(new ToolStripSeparator(), key); } else if (QTUtility2.PathExists(path)) { QMenuItem item = new QMenuItem(str2, MenuGenre.Group); item.SetImageReservationKey(path, null); dropDown.AddItem(item, key); if (QTUtility.StartUpGroupList.Contains(str2)) { if (QTUtility.StartUpTabFont == null) { QTUtility.StartUpTabFont = new Font(item.Font, FontStyle.Underline); } item.Font = QTUtility.StartUpTabFont; } } } } else { dropDownItem.Enabled = false; } }