/// <summary> /// Configure internaly the required properties for a new tree element. /// </summary> /// <param name="element"></param> /// <author> /// Created by Iulian Iuga; 01 January, 2003 /// </author> private void ConfigureNewElement(TreeElement element) { element.SetParent(_proprietor); element.SetTreeWeb(_proprietor.TreeWeb); element.SetLevel(_proprietor.Level + 1); element.ElementType = _ElementType._runTimeElement; // configure element children too foreach (TreeElement _element in element.Elements) { ConfigureNewElement(_element); } }
/// <summary> /// Configure internaly the required properties for a new tree element. /// </summary> /// <param name="element"></param> /// <author> /// Created by Iulian Iuga; 01 January, 2003 /// </author> private void ConfigureNewElement( TreeElement element ) { element.SetParent( _proprietor ); element.SetTreeWeb( _proprietor.TreeWeb ); element.SetLevel( _proprietor.Level + 1 ); element.ElementType = _ElementType._runTimeElement; // configure element children too foreach( TreeElement _element in element.Elements ) ConfigureNewElement( _element ); }