private void CreateUntaggedItem() { this.untaggedToolStripMenuItem = new UntagedMenuItem(this.persistence); this.untaggedToolStripMenuItem.DropDownOpening += new EventHandler(this.OnTagMenuDropDownOpening); this.favoritesToolStripMenuItem.DropDownItems.Add(this.untaggedToolStripMenuItem); }
/// <summary> /// Fills the main window "favorites" menu, after separator places all tags /// and their favorites as dropdown items /// </summary> private void CreateGroupsToolStripMenuItems() { foreach (IGroup group in PersistedGroups) { ToolStripMenuItem tagMenu = new GroupMenuItem(group); tagMenu.DropDownOpening += new EventHandler(this.OnTagMenuDropDownOpening); this.favoritesToolStripMenuItem.DropDownItems.Add(tagMenu); } }
private void AddTagTrayMenuItems() { foreach (IGroup group in PersistedGroups) { ToolStripMenuItem tagMenuItem = new GroupMenuItem(group); tagMenuItem.DropDownItemClicked += new ToolStripItemClickedEventHandler(this.quickContextMenuItemClicked); tagMenuItem.DropDownOpening += new EventHandler(OnTagTrayMenuItemDropDownOpening); this.quickContextMenu.Items.Insert(this.AlphabeticalMenuItemIndex, tagMenuItem); } }
private void AddUntaggedQuickContextMenu() { this.unTaggedQuickMenuItem = new UntagedMenuItem(this.persistence); unTaggedQuickMenuItem.DropDownItemClicked += new ToolStripItemClickedEventHandler(this.quickContextMenuItemClicked); unTaggedQuickMenuItem.DropDownOpening += new EventHandler(OnTagTrayMenuItemDropDownOpening); this.quickContextMenu.Items.Add(unTaggedQuickMenuItem); }
private void AddGroupMenuItems(IGroup group) { ToolStripMenuItem groupToolStripMenuItem = new GroupMenuItem(group, false); groupToolStripMenuItem.Click += new EventHandler(this.groupToolStripMenuItemClick); groupsToolStripMenuItem.DropDownItems.Add(groupToolStripMenuItem); ToolStripMenuItem groupAddToolStripMenuItem = new GroupMenuItem(group, false); groupAddToolStripMenuItem.Click += new EventHandler(this.groupAddToolStripMenuItemClick); addTerminalToGroupToolStripMenuItem.DropDownItems.Add(groupAddToolStripMenuItem); }