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 void UpdateNode(Node dataNode, CT.Node treeNode, CT.TreeListView view) { treeNode.Tag = dataNode; treeNode.ImageId = dataNode.ImageListIndex; var nameColumn = view.Columns["Name"]; treeNode[nameColumn.Index] = dataNode.NodeName; var typeColumn = view.Columns["Type"]; treeNode[typeColumn.Index] = dataNode.NodeType; var paramsColumn = view.Columns["Parameters"]; treeNode[paramsColumn.Index] = dataNode.NodeParameters; }
public TreeListColumnCollection(TreeListView owner) { m_owner = owner; m_options = new TreeList.CollumnSetting(owner); }
public TreeListViewNodes(TreeListView owner) : base(null) { m_tree = owner; }
public CellPainter(TreeListView owner) { m_owner = owner; }
public void UpdateNode(T dataNode, CT.Node treeNode, CT.TreeListView view) { treeNode.Tag = dataNode; }
public TreeListController(CT.TreeListView view, T data, ITreeListNodeMapper <T> nodeMapper) { Construct(view, data, nodeMapper); }
public TreeListController(CT.TreeListView view, T data) { Construct(view, data, null); }
public TreeListViewControlHooks(ref TreeListView tlv) { this._treelistview = tlv; tlv.MouseClick += new MouseEventHandler(tlv_MouseClick); }
public CellPainter(TreeListView owner) { m_owner = owner; m_owner.Font = new System.Drawing.Font("Segoe Script", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); }
public TreeListViewControlHooks(ref TreeListView tlv) { this._treelistview = tlv; tlv.MouseClick +=new MouseEventHandler(tlv_MouseClick); }