Exemplo n.º 1
0
        internal wTreeNodeCollection _children = null;//부모 collection 을 가진다.

        public wTreeNode()
        {
            _children = new wTreeNodeCollection(this);
            _children.E_TreeListChanged += TreeListChanged;
            _children.E_TreeNodeChanged += TreeNodeChanged;
            _items = new wTreeNodeItemCollection(this);
            _items.E_ItemChanged     += _items_E_ItemChanged;
            _items.E_ItemListChanged += _items_E_ItemListChanged;
        }
Exemplo n.º 2
0
        internal wTreeNode(wTree ownerTree, IwTreeNodeCollectionParent parent)
        {
            _parent = parent;
            if (parent == null)
            {
                _parent = null;
            }
            _ownerTree = ownerTree;
            _children  = new wTreeNodeCollection(_ownerTree, this);
            _children.E_TreeListChanged   += TreeListChanged;
            _children.E_TreeNodeChanged   += TreeNodeChanged;
            _children.E_TreeExpandChanged += _children_E_TreeExpandChanged;
            //_children.E_TreeNodeItemSelected += _items_E_ItemSelected;
            _items = new wTreeNodeItemCollection(_ownerTree, this);
            _items.E_ItemChanged     += _items_E_ItemChanged;
            _items.E_ItemListChanged += _items_E_ItemListChanged;
            //_items.E_ItemSelected += _items_E_ItemSelected;

            if (_plusWid == 0)
            {
                _plusWid = Properties.Resources.plus.Width;
            }
        }