Esempio n. 1
0
 private void Connection_Selected(VisualConnection sender)
 {
     foreach (var c in Controls.OfType <EditorElementBase>())
     {
         if (c is ConnectionControl)
         {
             continue;
         }
         c.IsSelected = false;
     }
     foreach (var c in connections)
     {
         c.IsSelected = c == sender;
     }
 }
Esempio n. 2
0
 public void RemoveConnection(VisualConnection c)
 {
     c.Dispose();
     connections.Remove(c);
 }
Esempio n. 3
0
 public void AddElement(VisualConnection VisualConnection)
 {
     connections.Add(VisualConnection);
     VisualConnection.Selected += Connection_Selected;
 }