public void RemoveRelation(UmlRelation umlRelation) { if (relations.Contains(umlRelation)) { RemoveLink(umlRelation); Relations.Remove(umlRelation); } }
public void AddRelation(UmlRelation umlRelation) { if (!relations.Contains(umlRelation)) { AddLink(umlRelation); relations.Add(umlRelation); } }
public UmlRelation GetOrCreateImplementsInterfaceRelation(bool fromDiagram, UmlClass startClass, UmlClass endClass) { UmlRelation rel = GetRelation <UmlImplementsInterfaceRelation>(startClass, endClass); if (rel == null) { rel = new UmlImplementsInterfaceRelation(startClass, endClass); AddRelation(rel, fromDiagram); } return(rel); }
public void RemoveRelation(UmlRelation umlRelation, bool notifyObservers) { if (relations.Contains(umlRelation)) { RemoveLink(umlRelation); relations.Remove(umlRelation); if (notifyObservers) { OnModified(); } } }
public void AddRelation(UmlRelation umlRelation, bool notifyObservers) { if (!relations.Contains(umlRelation)) { AddLink(umlRelation); relations.Add(umlRelation); if (notifyObservers) { OnModified(); } } }