Пример #1
0
 public void AddSelection(TreeNodeMultipleSelect node)
 {
     TreeNodeMultipleSelectArrayList list = new TreeNodeMultipleSelectArrayList(1);
     list.Add(node);
     AddSelection(list);
     UpdateToolBar();
 }
Пример #2
0
        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));
            }
        }
Пример #3
0
 protected virtual void OnAfterSingleSelect(TreeNodeMultipleSelect node)
 {
     node.PaintAsSelectedUnique();
     history.AddSelection(node);
 }
Пример #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);
 }