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); }
public TreeListController(CT.TreeListView view, T data, ITreeListNodeMapper <T> nodeMapper) { Construct(view, data, nodeMapper); }