Esempio n. 1
0
        public ToDoListViewModel(
            INavigationService navigationService,
            IScheduledRecordingsService scheduledRecordingService,
            Func <RecordingViewModel> recordingViewModelFactory)
        {
            this.navigationService         = navigationService;
            this.scheduledRecordingService = scheduledRecordingService;
            this.recordingViewModelFactory = recordingViewModelFactory;

            scheduledRecordingService.PropertyChanged += OnScheduledRecordingServicePropertyChanged;
        }
Esempio n. 2
0
        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;
        }
Esempio n. 4
0
        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());
        }