Пример #1
0
 public void SelectNode(IRealTreeNode node, SelectNodeFlags flags)
 {
     if (node == null)
     {
         tree.SelectedNode = null;
         return;
     }
     tree.SelectedNode = (DATreeNode)node;
     if ((flags & SelectNodeFlags.Expand) != 0)
     {
         node.ExpandNode();
     }
     if ((flags & SelectNodeFlags.FocusTree) != 0)
     {
         tree.Focus();
         if (TreeBehaviour.InfluenceGlobalTrees)
         {
             HTree.CallFocusedNodeChanged();
         }
     }
     if ((flags & SelectNodeFlags.ScrollInView) != 0)
     {
         node.EnsureVisibleNode();
     }
 }
Пример #2
0
 private void tree_Enter(object sender, EventArgs e)
 {
     m_focused2 = true;
     if (TreeEnter != null)
     {
         TreeEnter(sender, e);
     }
     if (TreeBehaviour.InfluenceGlobalTrees)
     {
         HTree.CallFocusedNodeChanged();
     }
 }
Пример #3
0
 private void daTreeView1_ActiveNodeChange(object sender, EventArgs e)
 {
     HTree.CallFocusedNodeChanged();
 }