public SearchViewModel(ITivoConnectionService tivoConnectionService) { this.tivoConnectionService = tivoConnectionService; this.tivoConnectionService.PropertyChanged += OnConnectionServicePropertyChanged; this.SearchText = "test"; }
public SearchViewModel( IProgressService progressService, ISpeechService speechService, ITivoConnectionService connectionService, Func <PersonItemViewModel> personFactory, Func <CollectionItemViewModel> collectionFactory ) { this.connectionService = connectionService; this.progressService = progressService; this.speechService = speechService; this.personFactory = personFactory; this.collectionFactory = collectionFactory; this.connectionService.PropertyChanged += OnConnectionServicePropertyChanged; this.searchTextChangedSubject .Throttle(TimeSpan.FromSeconds(1)) .Subscribe(_ => { if (this.SearchText != this.lastSearchText) { this.Search(); } }); }
public RecordingViewModel( ITivoConnectionService connectionService, IProgressService progressService) { this.connectionService = connectionService; this.progressService = progressService; }
public PersonItemViewModel( INavigationService navigationService, IProgressService progressService, ITivoConnectionService connectionService) { this.connectionService = connectionService; this.navigationService = navigationService; this.progressService = progressService; }
public PersonDetailsPageViewModel( IProgressService progressService, ITivoConnectionService connectionService, PersonContentViewModel contentViewModel) { this.progressService = progressService; this.connectionService = connectionService; this.contentSummaryViewModel = contentViewModel; }
public ScheduledRecordingsService( IProgressService progressService, ITivoConnectionService connectionService) { this.progressService = progressService; this.connectionService = connectionService; connectionService.PropertyChanged += OnConnectionServicePropertyChanged; InitializeRecordingsService(); }
public SettingsPageViewModel( IEventAggregator eventAggregator, IProgressService progressService, ITivoConnectionService connectionService) { this.eventAggregator = eventAggregator; this.connectionService = connectionService; this.progressService = progressService; this.connectionService.PropertyChanged += OnConnectionServicePropertyChanged; }
public LazyRecordingFolderItemViewModel( IProgressService progressService, ITivoConnectionService connectionService, Func <IndividualShowViewModel> showViewModelFactory, Func <ShowContainerViewModel> showContainerViewModelFactory) { this.progressService = progressService; this.connectionService = connectionService; this.showViewModelFactory = showViewModelFactory; this.showContainerViewModelFactory = showContainerViewModelFactory; }
public MyShowsViewModel( IProgressService progressService, ITivoConnectionService connectionService, Func <LazyRecordingFolderItemViewModel> showModelFactory) { this.connectionService = connectionService; this.progressService = progressService; this.showModelFactory = showModelFactory; connectionService.PropertyChanged += OnConnectionServicePropertyChanged; }
public CollectionDetailsPageViewModel( IAnalyticsService analyticsService, IProgressService progressService, ITivoConnectionService connectionService, CreditsViewModel creditsViewModel, UpcomingOffersViewModel upcomingOffersViewModel) { this.analyticsService = analyticsService; this.progressService = progressService; this.connectionService = connectionService; this.creditsViewModel = creditsViewModel; this.upcomingOffersViewModel = upcomingOffersViewModel; }
public OfferViewModel( ITivoConnectionService connectionService, IProgressService progressService, IScheduledRecordingsService scheduledRecordingsService) { this.connectionService = connectionService; this.progressService = progressService; this.scheduledRecordingsService = scheduledRecordingsService; if (this.scheduledRecordingsService != null) { this.scheduledRecordingsService.PropertyChanged += OnRecordingScheduleUpdated; } }
public UpcomingOffersViewModel( IProgressService progressService, INavigationService navigationService, IScheduledRecordingsService scheduledRecordingsService, ITivoConnectionService connectionService, Func <OfferViewModel> offerViewModelFactory) { this.progressService = progressService; this.navigationService = navigationService; this.scheduledRecordingsService = scheduledRecordingsService; this.connectionService = connectionService; this.offerViewModelFactory = offerViewModelFactory; connectionService.PropertyChanged += OnConnectionServicePropertyChanged; }
public MainViewModel( ITivoConnectionService tivoConnectionService, IWindowManager windowManager, WhatsOnViewModel whatsOnModel, ShowGridViewModel showGridModel, SearchViewModel searchModel) { this.tivoConnectionService = tivoConnectionService; this.windowManager = windowManager; this.WhatsOn = whatsOnModel; this.ShowGrid = showGridModel; this.Search = searchModel; this.tivoConnectionService.PropertyChanged += OnTivoConnectionServicePropertyChanged; this.shows = new BindableCollection <RecordingFolderItem>(); }
public ChannelListViewModel( IProgressService progressService, INavigationService navigationService, IScheduledRecordingsService scheduledRecordingsService, ITivoConnectionService connectionService, Func <OfferViewModel> offerViewModelFactory) { this.progressService = progressService; this.navigationService = navigationService; this.scheduledRecordingsService = scheduledRecordingsService; this.connectionService = connectionService; this.offerViewModelFactory = offerViewModelFactory; this.StartTime = DateTime.Now; connectionService.PropertyChanged += OnConnectionServicePropertyChanged; dateChangedSubject .Throttle(TimeSpan.FromSeconds(1)) .Subscribe(_ => RefreshShows()); }
public MainPageViewModel( INavigationService navigationService, ISpeechService speechService, ITivoConnectionService connectionService, MyShowsViewModel myShowsViewModel, ChannelListViewModel channelListViewModel, ToDoListViewModel toDoListViewModel, SearchViewModel searchViewModel) { this.navigationService = navigationService; this.speechService = speechService; this.connectionService = connectionService; this.myShowsViewModel = myShowsViewModel; this.channelListViewModel = channelListViewModel; this.toDoListViewModel = toDoListViewModel; this.searchViewModel = searchViewModel; connectionService.PropertyChanged += OnConnectionServicePropertyChanged; this.channelListViewModel.DisplayName = "guide"; this.channelListViewModel.PropertyChanged += OnViewModelPropertyChanged; this.Items.Add(channelListViewModel); this.toDoListViewModel.DisplayName = "scheduled"; this.toDoListViewModel.PropertyChanged += OnViewModelPropertyChanged; this.Items.Add(toDoListViewModel); this.myShowsViewModel.DisplayName = "my shows"; this.myShowsViewModel.PropertyChanged += OnViewModelPropertyChanged; this.Items.Add(myShowsViewModel); this.searchViewModel.DisplayName = "search"; this.searchViewModel.PropertyChanged += OnViewModelPropertyChanged; this.Items.Add(searchViewModel); this.ActivateItem(this.channelListViewModel); }
public ShowGridViewModel(ITivoConnectionService tivoConnectionService) { this.tivoConnectionService = tivoConnectionService; this.tivoConnectionService.PropertyChanged += OnConnectionServicePropertyChanged; }
public WhatsOnViewModel(ITivoConnectionService tivoConnectionService) { this.tivoConnectionService = tivoConnectionService; this.tivoConnectionService.PropertyChanged += (sender, args) => this.NotifyOfPropertyChange(() => this.CanUpdate); }