Ejemplo n.º 1
0
        private void ModelOnDefaultDeviceChanged(object sender, DeviceDefaultChangedEvent deviceDefaultChangedEvent)
        {
            if (_lastDeviceId == deviceDefaultChangedEvent.device.Id)
                return;

            _notification.NotifyDefaultChanged(deviceDefaultChangedEvent.device);
            _lastDeviceId = deviceDefaultChangedEvent.device.Id;
        }
Ejemplo n.º 2
0
        private void ModelOnDefaultDeviceChanged(object sender, DeviceDefaultChangedEvent deviceDefaultChangedEvent)
        {
            if (_lastDeviceId == deviceDefaultChangedEvent.device.Id)
            {
                return;
            }


            _notification.NotifyDefaultChanged(deviceDefaultChangedEvent.device);
            _lastDeviceId = deviceDefaultChangedEvent.device.Id;
        }
Ejemplo n.º 3
0
        private void UpdateImageContextMenu(AudioDeviceType audioDeviceType, DeviceDefaultChangedEvent audioChangeEvent)
        {
            if (audioChangeEvent.role != Role.Console)
            {
                return;
            }

            foreach (
                var toolStripDevItem in
                _selectionMenu.Items.OfType <ToolStripDeviceItem>().Where(item => item.AudioDevice.Type == audioDeviceType))
            {
                toolStripDevItem.Image = toolStripDevItem.AudioDevice.FriendlyName == audioChangeEvent.device.FriendlyName
                    ? Resources.Check
                    : null;
            }
        }
Ejemplo n.º 4
0
        private void UpdateImageContextMenu(AudioDeviceType audioDeviceType, DeviceDefaultChangedEvent audioChangeEvent)
        {
            if (audioChangeEvent.role != Role.Console)
                return;

            foreach (
                var toolStripDevItem in
                    _selectionMenu.Items.OfType<ToolStripDeviceItem>().Where(item => item.AudioDevice.Type == audioDeviceType))
            {
                toolStripDevItem.Image = toolStripDevItem.AudioDevice.FriendlyName == audioChangeEvent.device.FriendlyName
                    ? Resources.Check
                    : null;
            }
        }
Ejemplo n.º 5
0
 private void AudioController_DeviceDefaultChanged(object sender, DeviceDefaultChangedEvent e)
 {
     // don't care
     // RefreshDevices();
 }
Ejemplo n.º 6
0
 private void AudioControllerOnDeviceDefaultChanged(object sender, DeviceDefaultChangedEvent deviceDefaultChangedEvent)
 {
     _needUpdate = true;
 }