Ejemplo n.º 1
0
        private void RestoreChildParentContainerArrays(IEnumerable <INamedObjectList> lists, bool bOwner)
        {
            // For all child containers of this entity
            foreach (var list in lists)
            {
                if (list != null)
                {
                    // For each element
                    foreach (INamedObject oObj in list)
                    {
                        IEntityBase oEntity = oObj as IEntityBase;

                        if (oEntity != null)
                        {
                            // Add container to ParentContainers list
                            oEntity.AddParentContainer(list, bOwner);
                        }
                    }
                }
            }
        }