Example #1
0
        private static void Port_Disconnected(Connection connection)
        {
            PortUi senderUi = GetUi(connection.SourcePort);
            PortUi otherUi  = GetUi(connection.TargetPort);
            bool   destroy  = senderUi.RemoveConnection(GetUi(connection), false);

            otherUi.RemoveConnection(GetUi(connection), destroy);
        }
Example #2
0
 public virtual void Disconnect()
 {
     if (Connection != null)
     {
         Connection.Disconnect();
     }
     else
     {
         if (sourcePortUi != null)
         {
             sourcePortUi.RemoveConnection(this, true);
         }
     }
 }