Ejemplo n.º 1
0
        private void _HardwareError(object sender, EventArgs e)
        {
            HardwareUpdateThread hardwareUpdateThread = (HardwareUpdateThread)sender;

            _Stop((T)hardwareUpdateThread.OutputDevice);
            VixenSystem.Logging.Error("Device " + hardwareUpdateThread.OutputDevice.Name + " experienced an error during execution and was shutdown.");
        }
        private void _StartDevice(T outputDevice)
        {
            HardwareUpdateThread thread = new HardwareUpdateThread(outputDevice);

            thread.Error += _HardwareError;
            lock (_updateThreads) {
                _updateThreads[outputDevice.Id] = thread;
            }
            thread.Start();
        }