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