public EqualizerPage() { AvaloniaXamlLoader.Load(this); _eqSwitch = this.FindControl <SwitchListItem>("EqToggle"); _presetSlider = this.FindControl <SliderListItem>("EqPreset"); SPPMessageHandler.Instance.ExtendedStatusUpdate += InstanceOnExtendedStatusUpdate; EventDispatcher.Instance.EventReceived += OnEventReceived; Loc.LanguageUpdated += UpdateStrings; UpdateStrings(); }
public NoiseProAmbientPage() { AvaloniaXamlLoader.Load(this); _volumeSlider = this.FindControl <SliderListItem>("AmbientVolume"); _ambientCustomize = this.FindControl <SwitchListItem>("AmbientCustomize"); _ambientTone = this.FindControl <SliderListItem>("AmbientTone"); _ambientVolLeft = this.FindControl <SliderListItem>("AmbientLeftVol"); _ambientVolRight = this.FindControl <SliderListItem>("AmbientRightVol"); _ambientCustomBorder = this.FindControl <Border>("AmbientCustomBorder"); SPPMessageHandler.Instance.ExtendedStatusUpdate += OnExtendedStatusUpdate; EventDispatcher.Instance.EventReceived += OnEventReceived; Loc.LanguageUpdated += UpdateStrings; UpdateStrings(); }
public AmbientSoundPage() { AvaloniaXamlLoader.Load(this); _ambientSwitch = this.FindControl <SwitchListItem>("AmbientToggle"); _voiceFocusSwitch = this.FindControl <SwitchListItem>("AmbientVoiceFocusToggle"); _volumeSlider = this.FindControl <SliderListItem>("AmbientVolume"); _extraLoud = this.FindControl <SwitchDetailListItem>("AmbientExtraLoud"); _voiceFocusBorder = this.FindControl <Border>("AmbientVoiceFocusBorder"); _extraLoudBorder = this.FindControl <Border>("AmbientExtraLoudBorder"); SPPMessageHandler.Instance.AmbientEnabledUpdateResponse += (sender, b) => _ambientSwitch.IsChecked = b; SPPMessageHandler.Instance.ExtendedStatusUpdate += OnExtendedStatusUpdate; EventDispatcher.Instance.EventReceived += OnEventReceived; Loc.LanguageUpdated += UpdateStrings; UpdateStrings(); }
public NoiseProPage() { AvaloniaXamlLoader.Load(this); _ambientSwitch = this.FindControl <SwitchListItem>("AmbientToggle"); _volumeSlider = this.FindControl <SliderListItem>("AmbientVolume"); _ancSwitch = this.FindControl <SwitchListItem>("AncToggle"); _ancLevel = this.FindControl <SwitchDetailListItem>("AncLevelToggle"); _voiceDetect = this.FindControl <SwitchDetailListItem>("VoiceDetect"); _voiceDetectTimeout = this.FindControl <MenuDetailListItem>("VoiceDetectTimeout"); SPPMessageHandler.Instance.NoiseControlUpdateResponse += (sender, mode) => SetNoiseControlState(mode); SPPMessageHandler.Instance.ExtendedStatusUpdate += OnExtendedStatusUpdate; EventDispatcher.Instance.EventReceived += OnEventReceived; Loc.LanguageUpdated += UpdateStrings; Loc.LanguageUpdated += UpdateVoiceDetectTimeout; UpdateStrings(); UpdateVoiceDetectTimeout(); }