Esempio n. 1
0
 internal virtual void ConnectTo(Tube Other)
 {
     if (Endpoint != null)
     {
         throw new InvalidOperationException("Tube already connected");
     }
     Endpoint = Other;
     ConnectedTo?.Invoke(this, Other);
 }
Esempio n. 2
0
 public void Connect(Tube Other)
 {
     Other.ConnectTo(this);
     ConnectTo(Other);
 }