コード例 #1
0
 public void Dispose()
 {
     _isSpeechEnabledSubscription.Dispose();
     IsSpeechEnabled.Dispose();
 }
コード例 #2
0
 public SettingsPageViewModel(ApplicationSettingsService settingsService)
 {
     IsSpeechEnabled = settingsService.IsSpeechEnabledObservable.ToReactiveProperty();
     _isSpeechEnabledSubscription = IsSpeechEnabled.Subscribe(isSpeechEnabled => settingsService.IsSpeechEnabled = isSpeechEnabled);
 }