// Methods private void DisplayModeChanged(DisplayMode obj) { if (_lastDisplayNode.PresentationDisplayMode != obj.PresentationDisplayMode) { _displayManager.StopPolling(); var configNode = _configuration.Nodes.FirstOrDefault(x => x.PresentationDisplayMode == obj.PresentationDisplayMode); _audioDeviceManager.SwitchToDevice(configNode?.AudioDeviceId); _lastDisplayNode = obj; _displayManager.StartPolling(500); } }