protected void OnValidate() { if (string.IsNullOrEmpty(localHost)) { localHost = OSCUtilities.GetLocalHost(); } localPort = OSCUtilities.ClampPort(localPort); if (receiverBackend.IsRunning && IsAvailable) { Close(); Connect(); } }
protected void OnValidate() { remotePort = OSCUtilities.ClampPort(remotePort); if (string.IsNullOrEmpty(localHost)) { localHost = OSCUtilities.GetLocalHost(); } if (localPort > 0) { localPort = OSCUtilities.ClampPort(localPort); } transmitterBackend.RefreshRemote(remoteHost, remotePort); if (IsAvailable) { Close(); Connect(); } }