Exemple #1
0
 /// <summary>
 /// Attaches the given connector to this connector
 /// </summary>
 /// <param name="c"></param>
 public void AttachConnector(Connector c)
 {
     //remove from the previous, if any
     if (c.attachedTo != null)
     {
         c.attachedTo.attachedConnectors.Remove(c);
     }
     attachedConnectors.Add(c);
     c.attachedTo = this;
 }