public ViewContentViewModel(ITwitterAgent twitterAgent) { this.twitterAgent = twitterAgent; TweetDatas = this.twitterAgent.Tweets .ToReactivePropertySlimAsSynchronized(x => x.Value) .AddTo(this.disposables); TweetDatas.Subscribe(x => this.OnChangeTweetData(x)); }
public ViewCommandViewModel(ITwitterAgent twitterAgent) { this.twitterAgent = twitterAgent; SearchWord = this.twitterAgent.SearchWord .ToReactivePropertySlimAsSynchronized(x => x.Value) .AddTo(this.disposables); this.SearchButtonClick = new ReactiveCommand() .WithSubscribe(() => this.OnSearchButton()) .AddTo(this.disposables); }