Ejemplo n.º 1
0
        private void Construct(CT.TreeListView view, T data, ITreeListNodeMapper <T> nodeMapper)
        {
            _treeList   = view;
            _data       = data;
            _nodeMapper = nodeMapper != null ? nodeMapper : new TreeLisNodeDefaultMapper <T>();

            UpdateAllNodes();

            _data.Root.NodeChanged  += new EventHandler <TreeEventArgs <T> >(NodeChanged);
            _data.Root.ValueChanged += new EventHandler <TreeEventArgs <T> >(ValueChanged);
        }
Ejemplo n.º 2
0
 public TreeListController(CT.TreeListView view, T data, ITreeListNodeMapper <T> nodeMapper)
 {
     Construct(view, data, nodeMapper);
 }