private void DoRemoveChild(VdsTransform child) { if (_childrenList != null && _childrenList.Contains(child)) { RemoveChildInternal(this.NativeHandle, child.NativeHandle); lock (_locker) { _childrenList.Remove(child); } child.SetParent(null); } }
private void DoAddChild(VdsTransform child) { AddChildInternal(this.NativeHandle, child.NativeHandle); if (_childrenList == null) { _childrenList = new List <VdsTransform>(); } if (_childrenList.Contains(child)) { return; } lock (_locker) { _childrenList.Add(child); } child.SetParent(this); }