public override void FillCopy(IExolutioCloneable copyComponent, ProjectVersion projectVersion, ElementCopiesMap createdCopies) { base.FillCopy(copyComponent, projectVersion, createdCopies); PSMAssociationMember copyPSMAssociationMember = (PSMAssociationMember)copyComponent; if (ParentAssociation != null) { copyPSMAssociationMember.parentAssociationGuid = createdCopies.GetGuidForCopyOf(ParentAssociation); } this.CopyRefCollection(ChildPSMAssociations, copyPSMAssociationMember.ChildPSMAssociations, projectVersion, createdCopies, true); }
public PSMAssociation(Project p, Guid g, PSMAssociationMember parent, PSMAssociationMember child, int index, PSMSchema schema, bool setChildParentAssociation = true) : base(p, g) { Parent = parent; Child = child; if (Parent != null) { Parent.ChildPSMAssociations.Insert(this, index); } if (Child != null && setChildParentAssociation) { Child.ParentAssociation = this; } schema.PSMAssociations.Add(this); }
public PSMAssociation(Project p, PSMAssociationMember parent, PSMAssociationMember child, PSMSchema schema) : base(p) { Parent = parent; Child = child; if (Parent != null) { Parent.ChildPSMAssociations.Add(this); } if (Child != null) { Child.ParentAssociation = this; } schema.PSMAssociations.Add(this); }