Ejemplo n.º 1
0
 private void OnDeletePort()
 {
     if (SelectedPort != null)
     {
         PortList.Remove(SelectedPort);
     }
 }
Ejemplo n.º 2
0
 private void OnVertexRemoved(object sender, ItemEventArgs <Vertex> e)
 {
     e.Item.Connection = null;
     e.Item.Changed   -= OnVertexChanged;
     foreach (VertexPort port in PortList)
     {
         if (port.Vertex == e.Item)
         {
             PortList.Remove(port);
             break;
         }
     }
 }
Ejemplo n.º 3
0
 private void onVertexRemoved(object sender, ItemEventArgs <Vertex> e)
 {
     e.Item.Connection = null;
     e.Item.Changed   -= onVertexChanged;
     foreach (var port1 in PortList)
     {
         var port = (VertexPort)port1;
         if (port.Vertex == e.Item)
         {
             PortList.Remove(port);
             break;
         }
     }
 }