public void ProcessDoubleClick( Graphics g, SuperTree.TreeNode treeNode, Rectangle nodeRectangle, Point p, SuperTree.ITreeInfo treeInfo, SuperTree.ITreeEvents treeEvents ) { if( !IsOverExpandCollapseMark( treeNode, nodeRectangle, p ) ) { if( treeNode.ChildNodes.Count > 0 ) { treeEvents.ToggleNodeExpansion( treeNode ); } else { treeEvents.SelectNode( treeNode ); } } }
public void ProcessClick( Graphics g, SuperTree.TreeNode treeNode, Rectangle nodeRectangle, Point p, SuperTree.ITreeInfo treeInfo, SuperTree.ITreeEvents treeEvents ) { if( IsOverExpandCollapseMark( treeNode, nodeRectangle, p ) ) { if( !treeInfo.IsAnimating() ) { treeEvents.ToggleNodeExpansion( treeNode ); } } else { treeEvents.SelectNode( treeNode ); } }