public OnDemandShellViewModel(AssetViewerViewModel assetViewerViewModel, InteractionViewModel interactionViewModel, CaptionSettingsViewModel captionSettingsViewModel, ISettingsService settingsService, LocationService locationService, IEventAggregator eventAggregator) : base(eventAggregator) { this._settingsService = settingsService; this._LocationService = locationService; base.AssetViewer = assetViewerViewModel; base.Interaction = interactionViewModel; base.CaptionSettings = captionSettingsViewModel; }
public LiveTVShellViewModel(AssetViewerViewModel assetViewerViewModel, InteractionViewModel interactionViewModel, AssetInfoViewModel assetInfoViewModel, ChannelBrowserViewModel channelBrowserViewModel, CaptionSettingsViewModel captionSettingsViewModel, ISettingsService settingsService, IEventAggregator eventAggregator) : base(eventAggregator) { this._lastChannelStartTime = DateTime.MinValue; this._lastEpisodeInfoRefreshTime = DateTime.MinValue; this._nextAirTime = DateTime.MaxValue; this._currentChannelBrowserState = HideChannelBrowserState; this._settingsService = settingsService; base.AssetViewer = assetViewerViewModel; base.Interaction = interactionViewModel; this.ChannelBrowser = channelBrowserViewModel; base.CaptionSettings = captionSettingsViewModel; DispatcherTimer timer = new DispatcherTimer { Interval = new TimeSpan(0, 0, 0, 2) }; this._channelBrowserTimeoutTimer = timer; this._channelBrowserTimeoutTimer.Tick += new EventHandler(this.BrowserTimeoutTimerTick); this._channelThrottleTimer = new DispatcherTimer(); this._channelThrottleTimer.Interval = TimeSpan.FromSeconds(1.0); this._channelThrottleTimer.Tick += new EventHandler(this._channelThrottleTimer_Tick); }