public TreeNode(MultiColumnTree owner) { _owner = owner; _subItems = new TreeNodeSubItemCollection(this); _font = _owner.Font; _nodes = new TreeNodeCollection(this, _owner); _nodes.AfterClear += _nodes_AfterClear; _nodes.AfterInsert += _nodes_AfterInsert; _nodes.AfterRemove += _nodes_AfterRemove; _subItems.AfterClear += _subItems_AfterClear; _subItems.AfterInsert += _subItems_AfterInsert; _subItems.AfterRemove += _subItems_AfterRemove; _subItems.AfterSet += _subItems_AfterSet; }
public TreeNode(string text, TreeNodeCollection nodes) { _text = text; _owner = new MultiColumnTree(); _parent = null; _nodes = nodes; _subItems = new TreeNodeSubItemCollection(this); _nodes.AfterClear += _nodes_AfterClear; _nodes.AfterInsert += _nodes_AfterInsert; _nodes.AfterRemove += _nodes_AfterRemove; _subItems.AfterClear += _subItems_AfterClear; _subItems.AfterInsert += _subItems_AfterInsert; _subItems.AfterRemove += _subItems_AfterRemove; _subItems.AfterSet += _subItems_AfterSet; }
public TreeNode(string text, Image img, Image expImg) { _text = text; _image = img; _expandedImage = expImg; _owner = new MultiColumnTree(); _parent = null; _nodes = new TreeNodeCollection(this, _owner); _subItems = new TreeNodeSubItemCollection(this); _nodes.AfterClear += _nodes_AfterClear; _nodes.AfterInsert += _nodes_AfterInsert; _nodes.AfterRemove += _nodes_AfterRemove; _subItems.AfterClear += _subItems_AfterClear; _subItems.AfterInsert += _subItems_AfterInsert; _subItems.AfterRemove += _subItems_AfterRemove; _subItems.AfterSet += _subItems_AfterSet; }
public TreeNodeCollection(TreeNode parent, MultiColumnTree owner) : base() { _owner = owner; _parent = parent; }