public void Dispose() { _isSpeechEnabledSubscription.Dispose(); IsSpeechEnabled.Dispose(); }
public SettingsPageViewModel(ApplicationSettingsService settingsService) { IsSpeechEnabled = settingsService.IsSpeechEnabledObservable.ToReactiveProperty(); _isSpeechEnabledSubscription = IsSpeechEnabled.Subscribe(isSpeechEnabled => settingsService.IsSpeechEnabled = isSpeechEnabled); }