public AssociationRelationship Clone(TypeBase first, TypeBase second)
		{
			AssociationRelationship association = new AssociationRelationship(first, second);
			association.CopyFrom(this);
			return association;
		}
Example #2
0
 public void RemoveAssociationRelationship(AssociationRelationship a)
 {
     ((TypeBase)a.Second).associations.Remove(this);
     associationRelationships.Remove(a);
 }
Example #3
0
		/// <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);
		}
Example #4
0
 public void AddAssociationRelationship(AssociationRelationship a)
 {
     associationRelationships.Add(a);
     ((TypeBase)a.Second).associations.Add(this);
 }