Пример #1
0
		/// <override></override>
		public override Shape Clone()
		{
			Shape result = new Label(Type, (Template) null);
			result.CopyFrom(this);
			return result;
		}
 public Shape GetRelationshipByLabel(Label label)
 {
     var count = TableDiagram.Shapes.Count(t => t.Tag.ToString() == label.Tag.ToString().TrimEnd('L') + "R");
     if (count > 1)
         return null;
     
     return TableDiagram.Shapes.Single(t => t.Tag.ToString() == label.Tag.ToString().TrimEnd('L') + "R");
 }