Inheritance: System.Windows.Forms.Control, ISupportInitialize
        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);
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
 public TreeListColumnCollection(TreeListView owner)
 {
     m_owner   = owner;
     m_options = new TreeList.CollumnSetting(owner);
 }
Exemplo n.º 4
0
 public TreeListViewNodes(TreeListView owner) : base(null)
 {
     m_tree = owner;
 }
Exemplo n.º 5
0
 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);
 }
Exemplo n.º 9
0
        public TreeListViewControlHooks(ref TreeListView tlv)
        {
            this._treelistview = tlv;

            tlv.MouseClick += new MouseEventHandler(tlv_MouseClick);
        }
Exemplo n.º 10
0
 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);
        }