internal bool FilterNode(ITreeNode node) { if (TreeBehaviour.ShowFilter != null && !TreeBehaviour.ShowFilter(node)) { return(false); } return(true); }
private void SetTreeBehaviour() { bool simple = TreeStyle != TreeStyle.TreeView; TreeBehaviour = new TreeBehaviour { ForceAutoConnect = simple, AllowDragDrop = !simple, AllowDoubleClickNodeHandling = !simple, AllowPopupMenu = !simple, AllowRenameNode = !simple, HideToolbar = simple, InfluenceGlobalTrees = !simple, }; }