コード例 #1
0
		public AssociationRelationship Clone(TypeBase first, TypeBase second)
		{
			AssociationRelationship association = new AssociationRelationship(first, second);
			association.CopyFrom(this);
			return association;
		}
コード例 #2
0
ファイル: TypeBase.cs プロジェクト: BachelorEric/ModelFirst
 public void RemoveAssociationRelationship(AssociationRelationship a)
 {
     ((TypeBase)a.Second).associations.Remove(this);
     associationRelationships.Remove(a);
 }
コード例 #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);
		}
コード例 #4
0
ファイル: TypeBase.cs プロジェクト: BachelorEric/ModelFirst
 public void AddAssociationRelationship(AssociationRelationship a)
 {
     associationRelationships.Add(a);
     ((TypeBase)a.Second).associations.Add(this);
 }