AddChild() private method

private AddChild ( NiHierarchy item ) : void
item NiHierarchy
return void
Example #1
0
        private HResult ProcessParentChange(NiHierarchy parent)
        {
            if (_parent != null)
            {
                _parent.RemoveChild(this);
            }

            _parent = parent;

            if (_parent != null)
            {
                _parent.AddChild(this);
            }

            return(HResult.OK);
        }
Example #2
0
        private HResult ProcessParentChange(NiHierarchy parent)
        {
            if (_parent != null)
                _parent.RemoveChild(this);

            _parent = parent;

            if (_parent != null)
                _parent.AddChild(this);

            return HResult.OK;
        }