示例#1
0
        protected void OnValidate()
        {
            if (string.IsNullOrEmpty(localHost))
            {
                localHost = OSCUtilities.GetLocalHost();
            }

            localPort = OSCUtilities.ClampPort(localPort);

            if (receiverBackend.IsRunning && IsAvailable)
            {
                Close();
                Connect();
            }
        }
示例#2
0
        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();
            }
        }