public void AddSelection(TreeNodeMultipleSelect node)
 {
     TreeNodeMultipleSelectArrayList list = new TreeNodeMultipleSelectArrayList(1);
     list.Add(node);
     AddSelection(list);
     UpdateToolBar();
 }
        protected virtual void OnRightClick(MouseEventArgs e)
        {
            if (RightClickMenu == null)
            {
                SetupRightClickMenu();
            }

            MenuPoppedUpNode = (TreeNodeMultipleSelect)this.GetNodeAt(e.X, e.Y);

            // there may in fact be no node
            if (RightClickMenu != null)
            {
                RightClickMenu.Show(this,new Point(e.X, e.Y));
            }
        }
 protected virtual void OnAfterSingleSelect(TreeNodeMultipleSelect node)
 {
     node.PaintAsSelectedUnique();
     history.AddSelection(node);
 }
Example #4
0
 /// <summary>
 /// </summary>
 /// <param name="node"></param>
 protected override void OnAfterSingleSelect(TreeNodeMultipleSelect node)
 {
     base.OnAfterSingleSelect(node);
     SnippetTNode theNode = (SnippetTNode)node;
     RemoveNodeHighlights();
     theNode.SnippetInstance.OnAfterSelectExclusive();
     Universe.Instance.OnAfterSelect(theNode.SnippetInstance);
 }