Esempio n. 1
0
 public void DeleteConnectedLines(ClassSymbol classSymbol)
 {
     lock (_myLock)
     {
         for (int i = 0; i < _RelationShipLines.Count; i++)
         {
             if (_RelationShipLines[i].Location1 == classSymbol.Location || _RelationShipLines[i].Location2 == classSymbol.Location)
             {
                 RemoveSymbol(_RelationShipLines[i]);
             }
         }
     }
 }
Esempio n. 2
0
 public void Add(Symbol symbol)
 {
     if (symbol != null)
     {
         lock (_myLock)
         {
             if (symbol.type == "Class")
             {
                 ClassSymbol classSymbol = symbol as ClassSymbol;
                 _ClassSymbols.Add(classSymbol);
                 IsDirty = true;
             }
             else
             {
                 Relationship relationship = symbol as Relationship;
                 _RelationShipLines.Add(relationship);
                 IsDirty = true;
             }
         }
     }
 }