Esempio n. 1
0
 internal bool FilterNode(ITreeNode node)
 {
     if (TreeBehaviour.ShowFilter != null && !TreeBehaviour.ShowFilter(node))
     {
         return(false);
     }
     return(true);
 }
Esempio n. 2
0
        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,
            };
        }