Ejemplo n.º 1
0
        public PIMAssociation(Project p, PIMSchema schema, params KeyValuePair <PIMClass, Guid>[] classesAndEnds)
            : base(p)
        {
            InitializeCollections();

            schema.PIMAssociations.Add(this);
            foreach (KeyValuePair <PIMClass, Guid> pair in classesAndEnds)
            {
                PIMAssociationEnd e = new PIMAssociationEnd(Project, pair.Value, pair.Key, this, schema);
            }
        }
Ejemplo n.º 2
0
        public PIMAssociation(Project p, Guid g, PIMSchema schema, params PIMClass[] classes)
            : base(p, g)
        {
            InitializeCollections();

            schema.PIMAssociations.Add(this);
            foreach (PIMClass c in classes)
            {
                PIMAssociationEnd e = new PIMAssociationEnd(Project, c, this, schema);
            }
        }
Ejemplo n.º 3
0
        public override void FillCopy(IExolutioCloneable copyComponent, ProjectVersion projectVersion,
                                      ElementCopiesMap createdCopies)
        {
            base.FillCopy(copyComponent, projectVersion, createdCopies);

            PIMAssociationEnd copyPIMAssociationEnd = (PIMAssociationEnd)copyComponent;

            copyPIMAssociationEnd.Lower              = this.Lower;
            copyPIMAssociationEnd.Upper              = this.Upper;
            copyPIMAssociationEnd.IsNavigable        = this.IsNavigable;
            copyPIMAssociationEnd.IsShared           = this.IsShared;
            copyPIMAssociationEnd.isComposite        = this.IsComposite;
            copyPIMAssociationEnd.pimClassGuid       = createdCopies.GetGuidForCopyOf(PIMClass);
            copyPIMAssociationEnd.pimAssociationGuid = createdCopies.GetGuidForCopyOf(PIMAssociation);
        }