public override void AddCommand(CommandControlMappingElement command)
        {
            var config = (DeejConfiguration)command.hardwareConfiguration;

            DeejIn._StartListening(config.Port);

            _commandControlMappings.Add(command);
            SaveSettings(SAVEKEY);
        }
        public override void ModifyCommandAt(int index, CommandControlMappingElement newCommand)
        {
            if (_commandControlMappings.Count < index)
            {
                return;
            }

            var config = (DeejConfiguration)newCommand.hardwareConfiguration;

            DeejIn._StartListening(config.Port);

            _commandControlMappings[index] = newCommand;
            SaveSettings(SAVEKEY);
        }
        public DeejAppBinding(DeviceCollectionViewModel deviceViewModel, IAudioDeviceManager audioDeviceManager) :
            base(deviceViewModel, audioDeviceManager)
        {
            Current    = this;
            lastValues = new Dictionary <CommandControlMappingElement, int>();

            DeejIn.AddGeneralCallback(DeejCallback);

            LoadSettings(SAVEKEY);

            foreach (var command in _commandControlMappings)
            {
                var config = (DeejConfiguration)command.hardwareConfiguration;
                DeejIn._StartListening(config.Port);
            }
        }