示例#1
0
        /// <summary>
        /// ��ӽڵ�
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public int Add(  TreeNode value )
        {
            value.SetParentNode( this._ParentNode ) ;

            if( _Owner != null )
            {
                _Owner.OnTreeNodeCreated( value ) ;
            }

            return( List.Add( value ) );
        }
示例#2
0
        /// <summary>
        /// ����ڵ�
        /// </summary>
        /// <param name="index"></param>
        /// <param name="value"></param>
        public void Insert( int index,  TreeNode value )
        {
            value.SetParentNode( this._ParentNode ) ;

            if( _Owner != null )
            {
                _Owner.OnTreeNodeCreated( value ) ;
            }

            List.Insert( index, value );
        }