/// <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 ) ); }
/// <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 ); }