Ejemplo n.º 1
0
 public void Add(RelationshipStyle relationshipStyle)
 {
     if (relationshipStyle != null)
     {
         this.Relationships.Add(relationshipStyle);
     }
 }
Ejemplo n.º 2
0
        public void Add(RelationshipStyle relationshipStyle)
        {
            if (relationshipStyle != null)
            {
                if (_relationships.Exists(es => es.Tag.Equals(relationshipStyle.Tag)))
                {
                    throw new ArgumentException("A relationship style for the tag \"" + relationshipStyle.Tag + "\" already exists.");
                }

                _relationships.Add(relationshipStyle);
            }
        }