Example #1
0
        private void treeJira_AfterSelect(object sender, TreeViewEventArgs e)
        {
            AbstractNavigableTreeNodeWithServer node = treeJira.SelectedNode as AbstractNavigableTreeNodeWithServer;

            dropDownActions.DropDownItems.Add("phony");
            if (node != null)
            {
                node.onClick(status);
                string url = node.getUrl(CredentialUtils.getOsAuthString(server));
                webJira.Browser.Navigate(url);

                ICollection <ToolStripItem> menuItems = node.MenuItems;
                dropDownActions.Enabled = menuItems != null && menuItems.Count > 0;
            }
            else
            {
                dropDownActions.Enabled = false;
            }
        }
Example #2
0
        private void dropDownActions_DropDownOpened(object sender, EventArgs e)
        {
            AbstractNavigableTreeNodeWithServer node = treeJira.SelectedNode as AbstractNavigableTreeNodeWithServer;

            if (node == null)
            {
                return;
            }

            ICollection <ToolStripItem> menuItems = node.MenuItems;

            if (menuItems == null)
            {
                return;
            }

            dropDownActions.DropDownItems.Clear();
            foreach (ToolStripItem item in menuItems)
            {
                dropDownActions.DropDownItems.Add(item);
            }
            PlvsUtils.addPhonyMenuItemFixingPlvs109(dropDownActions);
        }