public AssociationRelationship Clone(TypeBase first, TypeBase second) { AssociationRelationship association = new AssociationRelationship(first, second); association.CopyFrom(this); return association; }
public void RemoveAssociationRelationship(AssociationRelationship a) { ((TypeBase)a.Second).associations.Remove(this); associationRelationships.Remove(a); }
/// <exception cref="ArgumentNullException"> /// <paramref name="association"/> is null.-or- /// <paramref name="startShape"/> is null.-or- /// <paramref name="endShape"/> is null. /// </exception> public Association(AssociationRelationship association, Shape startShape, Shape endShape) : base(association, startShape, endShape) { this.association = association; association.Reversed += new EventHandler(association_Reversed); }
public void AddAssociationRelationship(AssociationRelationship a) { associationRelationships.Add(a); ((TypeBase)a.Second).associations.Add(this); }