Exemplo n.º 1
0
        public NodeCollapseExpandEngine(NlmTreeListView listView, NodeQueryEngine nodeQuery)
        {
            ListView  = listView;
            NodeQuery = nodeQuery;

            ListView.CanExpandGetter = delegate(Object treeNode)
            {
                return((treeNode as BaseTreeNode).Children.Count > 0);
            };

            ListView.ChildrenGetter = delegate(Object treeNode)
            {
                return((treeNode as BaseTreeNode).Children);
            };
        }
Exemplo n.º 2
0
 public NodeDeleteEngine(NlmTreeListView listView, NodeQueryEngine nodeQuery, HandleMap handleMap)
 {
     ListView  = listView;
     NodeQuery = nodeQuery;
     HandleMap = handleMap;
 }