public WatchHistoryPageViewModel( LoginUserHistoryProvider loginUserHistoryProvider, Services.HohoemaPlaylist hohoemaPlaylist, Services.PageManager pageManager ) { LoginUserHistoryProvider = loginUserHistoryProvider; HohoemaPlaylist = hohoemaPlaylist; PageManager = pageManager; Histories = new ObservableCollection <HistoryVideoInfoControlViewModel>(); Histories.ObserveElementPropertyChanged() .Where(x => x.EventArgs.PropertyName == nameof(HistoryVideoInfoControlViewModel.IsRemoved)) .Where(x => x.Sender.IsRemoved) .Subscribe(x => Histories.Remove(x.Sender)) .AddTo(_CompositeDisposable); }
public WatchHistoryManager( LoginUserHistoryProvider loginUserHistoryProvider ) { _loginUserHistoryProvider = loginUserHistoryProvider; }