Ejemplo n.º 1
0
        private void SetActiveDevice(int pDeviceNumber)
        {
            if (mMainDevice != null && mMainDevice.IsActive)
            {
                mMainDevice.IsActive = false;
            }

            mMainDevice          = mInterfaces[pDeviceNumber];
            mMainDevice.IsActive = true;
        }
Ejemplo n.º 2
0
        public void SetActiveDevice(string pDeviceName)
        {
            if (mMainDevice != null && mMainDevice.IsActive)
            {
                mMainDevice.IsActive = false;
            }

            foreach (Interface.DmxInterface dmx in mInterfaces)
            {
                if (dmx.Name == pDeviceName)
                {
                    mMainDevice          = dmx;
                    mMainDevice.IsActive = true;
                }
            }
        }