/// <summary> /// Link in Graph gezogen, unterliegende Node Ports auch miteinander verbinden /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private void NodeGraphPanel_LinkCreated(object sender, EC.LinkEventArgs e) { var from = (OutputPort)((OutputGraphConnector)e.PortOut).Port; var to = (InputPort)((InputGraphConnector)e.PortIn).Port; @from.AddConnection(to); to.Connection = @from; }
/// <summary> /// Link aus Graph entfernt, unterliegende Node Ports auseinanderreissen /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private void NodeGraphPanel_LinkDestroyed(object sender, EC.LinkEventArgs e) { var from = (OutputPort)((OutputGraphConnector)e.PortOut).Port; var to = (InputPort)((InputGraphConnector)e.PortIn).Port; @from.RemoveConnection(to); to.Connection = null; }
private void _screen_LinkCreated(object sender, LinkEventArgs e) { LinkCreated?.Invoke(this, e); }