Exemple #1
0
        private void treeView_SelectedNodeChanged(object sender, ajkControls.TreeNode e)
        {
            NavigatePanelNode node = e as NavigatePanelNode;

            if (node == null)
            {
                return;
            }

            node.Update();
            foreach (NavigatePanelNode subNode in node.TreeNodes)
            {
                subNode.Update();
            }

            foreach (ToolStripItem tsi in contextMenuStrip.Items)
            {
                if (tsi == propertyTsmi)
                {
                    continue;
                }
                if (tsi == propertySeparator)
                {
                    continue;
                }
                if (tsi == deleteTsmi)
                {
                    continue;
                }
                if (tsi == addTsmi)
                {
                    continue;
                }
                tsi.Visible = false;
            }
            node.Selected();
            //            if (SelectedNodeChanged != null) SelectedNodeChanged(this, e);
        }
Exemple #2
0
 public void GetSelectedNode(out NavigatePanelNode node)
 {
     node = treeView.SelectedNode as NavigatePanelNode;
 }
Exemple #3
0
 public void UpdateWholeVisibleNode(NavigatePanelNode node)
 {
     node.HierarchicalVisibleUpdate();
 }