public SettingsViewModel( IPageService pageService, IMonitorsService monitorsService, IOptionsService optionsService, IActiveMediaItemsService activeMediaItemsService, IThumbnailService thumbnailService, ISnackbarService snackbarService) { _pageService = pageService; _monitorsService = monitorsService; _optionsService = optionsService; _thumbnailService = thumbnailService; _activeMediaItemsService = activeMediaItemsService; _snackbarService = snackbarService; _recentlyUsedMediaFolders = new RecentlyUsedFolders(); InitRecentlyUsedFolders(); _monitors = GetSystemMonitors().ToArray(); _loggingLevels = GetLoggingLevels().ToArray(); _fadingTypes = GetImageFadingTypes().ToArray(); _fadingSpeeds = GetFadingSpeedTypes().ToArray(); _renderingMethods = GetRenderingMethods().ToArray(); _pageService.NavigationEvent += HandleNavigationEvent; InitCommands(); Messenger.Default.Register <ShutDownMessage>(this, OnShutDown); }
public MediaWindow( IOptionsService optionsService, ISnackbarService snackbarService, IDatabaseService databaseService, IMonitorsService monitorsService) { InitializeComponent(); _webNavHeaderAdmin = new WebNavHeaderAdmin(WebNavHeader); _optionsService = optionsService; _snackbarService = snackbarService; _imageDisplayManager = new ImageDisplayManager( Image1Element, Image2Element, _optionsService); _webDisplayManager = new WebDisplayManager( Browser, BrowserGrid, databaseService, _optionsService, monitorsService, _snackbarService); _audioManager = new AudioManager(); InitVideoRenderingMethod(); SubscribeOptionsEvents(); SubscribeImageEvents(); SubscribeWebEvents(); SubscribeAudioEvents(); }
public TimerOutputDisplayService( IMonitorsService monitorsService, IOptionsService optionsService, IDateTimeService dateTimeService) : base(optionsService) { _monitorsService = monitorsService; _optionsService = optionsService; _dateTimeService = dateTimeService; }
public OptionsService( ICommandLineService commandLineService, ILogLevelSwitchService logLevelSwitchService, IMonitorsService monitorsService) { _commandLineService = commandLineService; _logLevelSwitchService = logLevelSwitchService; _monitorsService = monitorsService; Init(); }
public ScreenConfig(IMonitorsService monitorsService) : base(false) { this.SubscribeNotifier(); SystemEvents.UserPreferenceChanged += SystemEvents_UserPreferenceChanged; MonitorsOnCollectionChanged(monitorsService.AttachedMonitors, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, MonitorsService.D.AttachedMonitors)); monitorsService.AttachedMonitors.CollectionChanged += MonitorsOnCollectionChanged; }
public OptionsService( ICommandLineService commandLineService, ILogLevelSwitchService logLevelSwitchService, IMonitorsService monitorsService) { _commandLineService = commandLineService; _logLevelSwitchService = logLevelSwitchService; _monitorsService = monitorsService; Messenger.Default.Register <LogLevelChangedMessage>(this, OnLogLevelChanged); }
public LittleBigMouseDaemon(IList <string> args) { NotifyHelper.EventHandlerService = new EventHandlerServiceWpf(); ShutdownMode = ShutdownMode.OnExplicitShutdown; Startup += OnStartup; Exit += OnExit; Deactivated += OnDeactivated; _args = args; _monitorsService = new MonitorsService(); _screenConfig = new ScreenConfig(_monitorsService); }
public CountdownOutputDisplayService( IMonitorsService monitorsService, IOptionsService optionsService, IDateTimeService dateTimeService, ITimerOutputDisplayService timerOutputDisplayService, ISnackbarService snackbarService) : base(optionsService) { _monitorsService = monitorsService; _optionsService = optionsService; _dateTimeService = dateTimeService; _timerOutputDisplayService = timerOutputDisplayService; _snackbarService = snackbarService; }
public OptionsService( ICommandLineService commandLineService, ILogLevelSwitchService logLevelSwitchService, IMonitorsService monitorsService, IDateTimeService dateTimeService, IQueryWeekendService queryWeekendService) { _commandLineService = commandLineService; _logLevelSwitchService = logLevelSwitchService; _monitorsService = monitorsService; _dateTimeService = dateTimeService; _queryWeekendService = queryWeekendService; WeakReferenceMessenger.Default.Register <LogLevelChangedMessage>(this, OnLogLevelChanged); }
public ScreenConfig(IMonitorsService monitorsService) { MonitorsService = monitorsService; Initialize(); _wallPaperPath.Set(GetCurrentDesktopWallpaper()); SystemEvents.UserPreferenceChanged += SystemEvents_UserPreferenceChanged; MonitorsOnCollectionChanged(monitorsService.AttachedMonitors, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, monitorsService.AttachedMonitors.ToList())); monitorsService.AttachedMonitors.CollectionChanged += MonitorsOnCollectionChanged; }
public WebDisplayManager( ChromiumWebBrowser browser, FrameworkElement browserGrid, IDatabaseService databaseService, IOptionsService optionsService, IMonitorsService monitorsService, ISnackbarService snackbarService) { _browser = browser; _browserGrid = browserGrid; _databaseService = databaseService; _optionsService = optionsService; _monitorsService = monitorsService; _snackbarService = snackbarService; InitBrowser(); }
public SettingsViewModel( IMonitorsService monitorsService, IOptionsService optionsService, IDragDropService dragDropService, IUserInterfaceService userInterfaceService) { _monitorsService = monitorsService; _optionsService = optionsService; _userInterfaceService = userInterfaceService; dragDropService.EpubFileListChanged += HandleEpubFileListChanged; _monitors = GetSystemMonitors().ToArray(); _loggingLevels = GetLoggingLevels().ToArray(); _bibleEpubFiles = GetBibleEpubFiles().ToArray(); _themeFiles = GetThemeFiles().ToArray(); Messenger.Default.Register <ShutDownMessage>(this, OnShutDown); }
public SettingsViewModel( IPageService pageService, IMonitorsService monitorsService, IOptionsService optionsService, IThumbnailService thumbnailService) { _pageService = pageService; _monitorsService = monitorsService; _optionsService = optionsService; _thumbnailService = thumbnailService; _monitors = GetSystemMonitors().ToArray(); _loggingLevels = GetLoggingLevels().ToArray(); _fadingTypes = GetImageFadingTypes().ToArray(); _fadingSpeeds = GetFadingSpeedTypes().ToArray(); _pageService.NavigationEvent += HandleNavigationEvent; InitCommands(); Messenger.Default.Register <ShutDownMessage>(this, OnShutDown); }
public SettingsPageViewModel( IMonitorsService monitorsService, IBellService bellService, IOptionsService optionsService) { // subscriptions... Messenger.Default.Register <ShutDownMessage>(this, OnShutDown); Messenger.Default.Register <BellStatusChangedMessage>(this, OnBellChanged); _optionsService = optionsService; _monitorsService = monitorsService; _bellService = bellService; _monitors = GetSystemMonitors().ToArray(); _operatingModes = GetOperatingModes().ToArray(); _autoMeetingTimes = GetAutoMeetingTimes().ToArray(); _clockHourFormats = GetClockHourFormats().ToArray(); _adaptiveModes = GetAdaptiveModes().ToArray(); NavigateOperatorCommand = new RelayCommand(NavigateOperatorPage); TestBellCommand = new RelayCommand(TestBell, IsNotPlayingBell); }
public SettingsPageViewModel( IMonitorsService monitorsService, IBellService bellService, IOptionsService optionsService, ISnackbarService snackbarService, ICountdownTimerTriggerService countdownTimerService, IDateTimeService dateTimeService) { // subscriptions... WeakReferenceMessenger.Default.Register <ShutDownMessage>(this, OnShutDown); WeakReferenceMessenger.Default.Register <BellStatusChangedMessage>(this, OnBellChanged); _optionsService = optionsService; _snackbarService = snackbarService; _monitorsService = monitorsService; _bellService = bellService; _countdownTimerService = countdownTimerService; _dateTimeService = dateTimeService; _monitors = GetSystemMonitors(); _languages = GetSupportedLanguages(); _operatingModes = GetOperatingModes(); _screenLocationItems = GetScreenLocationItems(); _countdownDurationItems = GetCountdownDurationItems(); _countdownElementsToShowItems = GetCountdownElementsToShowItems(); _autoMeetingTimes = GetAutoMeetingTimes(); _clockHourFormats = GetClockHourFormats(); _adaptiveModes = GetAdaptiveModes(); _timeOfDayModes = GetTimeOfDayModes(); _ports = GetPorts().ToArray(); _persistDurationItems = Options.GetPersistDurationItems(); _loggingLevels = GetLoggingLevels(); // commands... NavigateOperatorCommand = new RelayCommand(NavigateOperatorPage); TestBellCommand = new RelayCommand(TestBell, IsNotPlayingBell); OpenPortCommand = new RelayCommand(ReserveAndOpenPort); WebClockUrlLinkCommand = new RelayCommand(OpenWebClockLink); }
public MainViewModel( IOptionsService optionsService, IMonitorsService monitorsService, ITalkTimerService timerService, IHttpServer httpServer, IBellService bellService, ICountdownTimerTriggerService countdownTimerTriggerService) { _optionsService = optionsService; _monitorsService = monitorsService; _bellService = bellService; _httpServer = httpServer; _timerService = timerService; _countdownTimerTriggerService = countdownTimerTriggerService; // subscriptions... Messenger.Default.Register <NavigateMessage>(this, OnNavigate); Messenger.Default.Register <TimerMonitorChangedMessage>(this, OnTimerMonitorChanged); Messenger.Default.Register <AlwaysOnTopChangedMessage>(this, OnAlwaysOnTopChanged); Messenger.Default.Register <OvertimeMessage>(this, OnTalkOvertime); Messenger.Default.Register <HttpServerChangedMessage>(this, OnHttpServerChanged); Messenger.Default.Register <StopCountDownMessage>(this, OnStopCountdown); InitHttpServer(); // should really create a "page service" rather than create views in the main view model! _pages.Add(OperatorPageViewModel.PageName, new OperatorPage()); _timerWindowViewModel = new TimerOutputWindowViewModel(_optionsService); _countdownWindowViewModel = new CountdownTimerViewModel(); Messenger.Default.Send(new NavigateMessage(null, OperatorPageViewModel.PageName, null)); #pragma warning disable 4014 // (fire and forget) LaunchTimerWindowAsync(); #pragma warning restore 4014 }
public SettingsViewModel( IMonitorsService monitorsService, IOptionsService optionsService, IDragDropService dragDropService, IUserInterfaceService userInterfaceService) { _monitorsService = monitorsService; _optionsService = optionsService; _userInterfaceService = userInterfaceService; dragDropService.EpubFileListChanged += HandleEpubFileListChanged; _monitors = GetSystemMonitors(); _languages = GetSupportedLanguages(); _loggingLevels = GetLoggingLevels(); _bibleEpubFiles = GetBibleEpubFiles(); _themeFiles = GetThemeFiles(); SelectDestinationFolderCommand = new RelayCommand(SelectDestinationFolder); ResetTextScalingCommand = new RelayCommand(ResetTextScaling, CanResetScaling); Messenger.Default.Register <ShutDownMessage>(this, OnShutDown); }
//// //// GET: /Batteries/ public MonitorsController(IMonitorsService service) { this._service = service; }
public LittleBigMouseService(IMonitorsService monitorService) { _monitorService = monitorService; }
public MainService(MainViewModel mainViewModel, IMvvmService mvvmService, IMonitorsService monitorsService, ScreenConfig config) { MainViewModel = mainViewModel; Config = config; }
public MouseEngine(IMonitorsService monitorService) { _monitorService = monitorService; }