示例#1
0
        public bool RemoveDeviceConfiguration(DeviceConfiguration device)
        {
            var success = InputDeviceConfigurations.Remove(device) || OutputDeviceConfigurations.Remove(device);

            if (success)
            {
                OnPropertyChanged(nameof(InputDeviceConfigurations));
                OnPropertyChanged(nameof(OutputDeviceConfigurations));
                Context.ContextChanged();
            }

            return(success);
        }