示例#1
0
        /// <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;
        }
示例#2
0
        /// <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;
        }
示例#3
0
 private void _screen_LinkCreated(object sender, LinkEventArgs e)
 {
     LinkCreated?.Invoke(this, e);
 }