Beispiel #1
0
        private void CloseAllChannels()
        {
            IRelayDeviceInfo device = GetCurrentDevice();

            if (device == null)
            {
                return;
            }
            using (var relayController = new RelayController())
            {
                relayController.ConnectDevice(device);
                relayController.CloseAllChannels(device);
            }
        }