public IActionResult Edit(DeviceNamesViewModel deviceNames)
        {
            if (ModelState.IsValid)
            {
                myj64Config.SoundDeviceName = deviceNames.SoundDeviceName;
                myj64Config.ChannelSurfDeviceName = deviceNames.ChannelSurfDeviceName;
                myj64Config.LastChannelDeviceName = deviceNames.LastChannelDeviceName;
                myj64Config.VcrPauseDeviceName = deviceNames.VcrPauseDeviceName;

                myj64Config.VolumeDevice = deviceNames.VolumeDevice;
                myj64Config.ChannelDevice = deviceNames.ChannelDevice;
                myj64Config.ChanneKeyPauseInterval = deviceNames.ChanneKeyPauseInterval;

                j64HarmonyGatewayRepository.Save(myj64Config);
            }

            deviceNames.VolumeDeviceList = GetDeviceList(deviceNames.VolumeDevice);
            deviceNames.ChannelDeviceList = GetDeviceList(deviceNames.ChannelDevice);
            return View(deviceNames);
        }
        private DeviceNamesViewModel CreateViewMode()
        {
            var dvm = new DeviceNamesViewModel()
            {
                ChanneKeyPauseInterval = myj64Config.ChanneKeyPauseInterval,
                ChannelDevice = myj64Config.ChannelDevice,
                ChannelSurfDeviceName = myj64Config.ChannelSurfDeviceName,
                LastChannelDeviceName = myj64Config.LastChannelDeviceName,
                SoundDeviceName = myj64Config.SoundDeviceName,
                VcrPauseDeviceName = myj64Config.VcrPauseDeviceName,
                VolumeDevice = myj64Config.VolumeDevice,
            };

            dvm.VolumeDeviceList = GetDeviceList(dvm.VolumeDevice);
            dvm.ChannelDeviceList = GetDeviceList(dvm.ChannelDevice);
            
            return dvm;
        }