예제 #1
0
 /// <summary>
 /// Creates a new instance.
 /// </summary>
 public CommandLineLifetime(ILogger <CommandLineLifetime> logger, IApplicationLifetime applicationLifetime,
                            ICommandLineService cliService)
 {
     this.logger = logger;
     this.applicationLifetime = applicationLifetime;
     this.cliService          = cliService;
 }
 public LocalTimingDataStoreService(
     ICommandLineService commandLineService,
     IDateTimeService dateTimeService)
 {
     _commandLineService = commandLineService;
     _dateTimeService    = dateTimeService;
 }
예제 #3
0
 public OptionsService(
     ILogLevelSwitchService logLevelSwitchService,
     ICommandLineService commandLineService)
 {
     _logLevelSwitchService = logLevelSwitchService;
     _commandLineService    = commandLineService;
 }
예제 #4
0
 /// <summary>Creates a new instance.</summary>
 public CommandLineLifetime(IApplicationLifetime applicationLifetime, ICommandLineService cliService, IConsole console, IUnhandledExceptionHandler?unhandledExceptionHandler = null)
 {
     _applicationLifetime       = applicationLifetime;
     _cliService                = cliService;
     _console                   = console;
     _unhandledExceptionHandler = unhandledExceptionHandler;
 }
예제 #5
0
        private void InitializeMefHostingService(ICommandLineService commandLineService)
        {
            PerformanceUtility.StartPerformanceSequence(PerformanceEvent.MefInitialization);
            IExpressionMefHostingService service = this.Services.GetService <IExpressionMefHostingService>();

            string[] arguments = commandLineService.GetArguments("extension");
            if (arguments != null)
            {
                foreach (string assembly in arguments)
                {
                    service.AddAssembly(assembly);
                }
            }
            string folder = Path.Combine(Path.GetDirectoryName(this.GetType().Module.FullyQualifiedName), "extensions");

            service.AddFolder(folder);
            try
            {
                service.Compose();
            }
            catch (Exception ex)
            {
                this.mefExceptionToShow = ex;
            }
            PerformanceUtility.EndPerformanceSequence(PerformanceEvent.MefInitialization);
        }
예제 #6
0
 public CopyRecordingsService(
     ICommandLineService commandLineService,
     IOptionsService optionsService)
 {
     _commandLineService = commandLineService;
     _optionsService     = optionsService;
 }
예제 #7
0
 public BlendServer(IServiceProvider serviceProvider)
 {
     this.windowService      = (Microsoft.Expression.Framework.UserInterface.IWindowService)serviceProvider.GetService(typeof(Microsoft.Expression.Framework.UserInterface.IWindowService));
     this.projectManager     = (IProjectManager)serviceProvider.GetService(typeof(IProjectManager));
     this.commandLineService = (ICommandLineService)serviceProvider.GetService(typeof(ICommandLineService));
     this.defaultWait        = new TimeSpan(0, 0, 3);
 }
예제 #8
0
        public RecordingPageViewModel(
            IAudioService audioService,
            IOptionsService optionsService,
            ICommandLineService commandLineService,
            IRecordingDestinationService destinationService)
        {
            Messenger.Default.Register <BeforeShutDownMessage>(this, OnShutDown);

            _commandLineService = commandLineService;
            _stopwatch          = new Stopwatch();

            _audioService = audioService;
            _audioService.StartedEvent           += AudioStartedHandler;
            _audioService.StoppedEvent           += AudioStoppedHandler;
            _audioService.StopRequested          += AudioStopRequestedHandler;
            _audioService.RecordingProgressEvent += AudioProgressHandler;

            _optionsService     = optionsService;
            _destinationService = destinationService;
            _recordingStatus    = RecordingStatus.NotRecording;

            _statusStr = Properties.Resources.NOT_RECORDING;

            // bind commands...
            StartRecordingCommand   = new RelayCommand(StartRecording, CanExecuteStart);
            StopRecordingCommand    = new RelayCommand(StopRecording, CanExecuteStop);
            NavigateSettingsCommand = new RelayCommand(NavigateSettings, CanExecuteNavigateSettings);
            ShowRecordingsCommand   = new RelayCommand(ShowRecordings);
        }
예제 #9
0
 /// <summary>
 ///     Creates a new instance.
 /// </summary>
 public CommandLineLifetime(IApplicationLifetime applicationLifetime,
                            ICommandLineService cliService,
                            IConsole console)
 {
     _applicationLifetime = applicationLifetime;
     _cliService          = cliService;
     _console             = console;
 }
예제 #10
0
        public CommandManager(ICommandLineService terminalService, IFileService fileService)
        {
            _terminalService = terminalService;
            _fileService     = fileService;

            _fileNameConnect    = "scriptConnect";
            _fileNameDisconnect = "scriptDisconnect";
        }
예제 #11
0
 public CopyRecordingsService(
     ICommandLineService commandLineService,
     IOptionsService optionsService,
     IDriveEjectionService driveEjectionService)
 {
     _commandLineService   = commandLineService;
     _optionsService       = optionsService;
     _driveEjectionService = driveEjectionService;
 }
예제 #12
0
        public PurgeRecordingsService(
            IOptionsService optionsService,
            ICommandLineService commandLineService)
        {
            _optionsService     = optionsService;
            _commandLineService = commandLineService;

            InitTimer();
        }
예제 #13
0
        public MainViewModel(
            ScripturesViewModel scripturesViewModel,
            PreviewViewModel previewViewModel,
            SettingsViewModel settingsViewModel,
            EditTextViewModel editVerseTextViewModel,
            StartupViewModel startupViewModel,
            IImagesService imagesService,
            IOptionsService optionsService,
            ISnackbarService snackbarService,
            IUserInterfaceService userInterfaceService,
            ICommandLineService commandLineService,
            IVerseEditorService verseEditorService)
        {
            _scripturesViewModel    = scripturesViewModel;
            _previewViewModel       = previewViewModel;
            _settingsViewModel      = settingsViewModel;
            _editVerseTextViewModel = editVerseTextViewModel;
            _startupViewModel       = startupViewModel;
            _commandLineService     = commandLineService;
            _verseEditorService     = verseEditorService;

            if (commandLineService.NoGpu || ForceSoftwareRendering())
            {
                // disable hardware (GPU) rendering so that it's all done by the CPU...
                RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly;
            }

            _settingsViewModel.EpubChangedEvent += HandleEpubChangedEvent;

            _previewViewModel.EditTextCommandEvent += HandleEditTextCommandEvent;

            _imagesService        = imagesService;
            _optionsService       = optionsService;
            _snackbarService      = snackbarService;
            _userInterfaceService = userInterfaceService;

            _optionsService.AlwaysOnTopChangedEvent += HandleAlwaysOnTopChangedEvent;
            _optionsService.EpubPathChangedEvent    += HandleEpubPathChangedEvent;

            InitCommands();

            _currentPage     = scripturesViewModel;
            _preSettingsPage = scripturesViewModel;

            if (IsNewInstallation())
            {
                _currentPage = startupViewModel;
            }
            else if (IsBadEpubPath())
            {
                _currentPage = settingsViewModel;
            }

            _nextPageTooltip = Properties.Resources.NEXT_PAGE_PREVIEW;

            GetVersionData();
        }
예제 #14
0
        public OptionsService(
            ICommandLineService commandLineService,
            ILogLevelSwitchService logLevelSwitchService)
        {
            _commandLineService    = commandLineService;
            _logLevelSwitchService = logLevelSwitchService;

            Messenger.Default.Register <LogLevelChangedMessage>(this, OnLogLevelChanged);
        }
예제 #15
0
        public OptionsService(
            ILogLevelSwitchService logLevelSwitchService,
            ICommandLineService commandLineService)
        {
            _options = new Lazy <Options>(OptionsFactory);

            _logLevelSwitchService = logLevelSwitchService;
            _commandLineService    = commandLineService;
        }
예제 #16
0
        public MainViewModel(
            IPageService pageService,
            IOptionsService optionsService,
            ISnackbarService snackbarService,
            IMediaStatusChangingService mediaStatusChangingService,
            IHiddenMediaItemsService hiddenMediaItemsService,
            ICommandLineService commandLineService,
            IDragAndDropService dragAndDropService)
        {
            _commandLineService = commandLineService;
            
            if (commandLineService.NoGpu || ForceSoftwareRendering())
            {
                // disable hardware (GPU) rendering so that it's all done by the CPU...
                RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly;
            }

            Messenger.Default.Register<MediaListUpdatingMessage>(this, OnMediaListUpdating);
            Messenger.Default.Register<MediaListUpdatedMessage>(this, OnMediaListUpdated);

            _mediaStatusChangingService = mediaStatusChangingService;
            _hiddenMediaItemsService = hiddenMediaItemsService;

            _hiddenMediaItemsService.HiddenItemsChangedEvent += HandleHiddenItemsChangedEvent;

            _pageService = pageService;
            _pageService.NavigationEvent += HandlePageNavigationEvent;
            _pageService.MediaMonitorChangedEvent += HandleMediaMonitorChangedEvent;
            _pageService.MediaWindowVisibilityChanged += HandleMediaWindowVisibilityChangedEvent;
            
            _snackbarService = snackbarService;
            
            _optionsService = optionsService;
            _optionsService.AlwaysOnTopChangedEvent += HandleAlwaysOnTopChangedEvent;

            if (_optionsService.ShouldPurgeBrowserCacheOnStartup)
            {
                _optionsService.ShouldPurgeBrowserCacheOnStartup = false;
                _optionsService.Save();
                FileUtils.DeleteBrowserCacheFolder();
            }

            _pageService.GotoOperatorPage();

            dragAndDropService.CopyingFilesProgressEvent += HandleCopyingFilesProgressEvent;

            InitCommands();

            if (!IsInDesignMode)
            {
                _pageService.InitMediaWindow();
            }

            GetVersionData();
            CheckLogLevel();
        }
예제 #17
0
        public MainViewModel(
            IAudioService audioService,
            IOptionsService optionsService,
            ICommandLineService commandLineService,
            IRecordingDestinationService destService,
            ICopyRecordingsService copyRecordingsService,
            ISnackbarService snackbarService,
            IPurgeRecordingsService purgeRecordingsService,
            ISilenceService silenceService)
        {
            if (commandLineService.NoGpu)
            {
                // disable hardware (GPU) rendering so that it's all done by the CPU...
                RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly;
            }

            // subscriptions...
            Messenger.Default.Register <NavigateMessage>(this, OnNavigate);
            Messenger.Default.Register <AlwaysOnTopChanged>(this, OnAlwaysOnTopChanged);

            _pages = new Dictionary <string, FrameworkElement>();

            _optionsService         = optionsService;
            _audioService           = audioService;
            _snackbarService        = snackbarService;
            _purgeRecordingsService = purgeRecordingsService;

            // set up pages...
            SetupPage(
                RecordingPageViewModel.PageName,
                new RecordingPage(),
                new RecordingPageViewModel(
                    audioService,
                    optionsService,
                    commandLineService,
                    destService,
                    copyRecordingsService,
                    snackbarService,
                    silenceService));

            SetupPage(
                SettingsPageViewModel.PageName,
                new SettingsPage(),
                new SettingsPageViewModel(audioService, optionsService, commandLineService));

            var state = new RecordingPageNavigationState
            {
                ShowSplash     = !optionsService.Options.StartMinimized,
                StartRecording = optionsService.Options.StartRecordingOnLaunch,
            };

            GetVersionData();

            Messenger.Default.Send(new NavigateMessage(
                                       null, RecordingPageViewModel.PageName, state));
        }
예제 #18
0
        public CommandLineParser(IOptionDefinitionService optionDefinitionService, ILanguageService languageService,
                                 ICommandLineService commandLineService)
        {
            Argument.IsNotNull(() => optionDefinitionService);
            Argument.IsNotNull(() => languageService);
            Argument.IsNotNull(() => commandLineService);

            _optionDefinitionService = optionDefinitionService;
            _languageService         = languageService;
            _commandLineService      = commandLineService;
        }
예제 #19
0
        public OptionsService(
            ICommandLineService commandLineService,
            ILogLevelSwitchService logLevelSwitchService,
            IMonitorsService monitorsService)
        {
            _commandLineService    = commandLineService;
            _logLevelSwitchService = logLevelSwitchService;
            _monitorsService       = monitorsService;

            Init();
        }
예제 #20
0
        public OperatorPageViewModel(
            ITalkTimerService timerService,
            ITalkScheduleService scheduleService,
            IAdaptiveTimerService adaptiveTimerService,
            IOptionsService optionsService,
            ICommandLineService commandLineService,
            IBellService bellService)
        {
            _scheduleService                 = scheduleService;
            _optionsService                  = optionsService;
            _adaptiveTimerService            = adaptiveTimerService;
            _commandLineService              = commandLineService;
            _bellService                     = bellService;
            _timerService                    = timerService;
            _timerService.TimerChangedEvent += TimerChangedHandler;
            _countUp = _optionsService.Options.CountUp;

            SelectFirstTalk();

            _timerService.TimerStartStopFromApiEvent += HandleTimerStartStopFromApi;

            // commands...
            StartCommand            = new RelayCommand(StartTimer, () => IsNotRunning && IsValidTalk, true);
            StopCommand             = new RelayCommand(StopTimer, () => IsRunning);
            SettingsCommand         = new RelayCommand(NavigateSettings, () => IsNotRunning && !_commandLineService.NoSettings);
            HelpCommand             = new RelayCommand(LaunchHelp);
            NewVersionCommand       = new RelayCommand(DisplayNewVersionPage);
            IncrementTimerCommand   = new RelayCommand(IncrementTimer, CanIncreaseTimerValue);
            IncrementTimer15Command = new RelayCommand(IncrementTimer15Secs, CanIncreaseTimerValue);
            IncrementTimer5Command  = new RelayCommand(IncrementTimer5Mins, CanIncreaseTimerValue);
            DecrementTimerCommand   = new RelayCommand(DecrementTimer, CanDecreaseTimerValue);
            DecrementTimer15Command = new RelayCommand(DecrementTimer15Secs, CanDecreaseTimerValue);
            DecrementTimer5Command  = new RelayCommand(DecrementTimer5Mins, CanDecreaseTimerValue);
            BellToggleCommand       = new RelayCommand(BellToggle);
            CountUpToggleCommand    = new RelayCommand(CountUpToggle);
            CloseCountdownCommand   = new RelayCommand(CloseCountdownWindow);

            // subscriptions...
            Messenger.Default.Register <OperatingModeChangedMessage>(this, OnOperatingModeChanged);
            Messenger.Default.Register <AutoMeetingChangedMessage>(this, OnAutoMeetingChanged);
            Messenger.Default.Register <CountdownWindowStatusChangedMessage>(this, OnCountdownWindowStatusChanged);
            Messenger.Default.Register <ShowCircuitVisitToggleChangedMessage>(this, OnShowCircuitVisitToggleChanged);

            if (IsInDesignMode)
            {
                IsNewVersionAvailable = true;
            }

            GetVersionData();
        }
예제 #21
0
 public TestRunnerService(ILogger <TestRunnerService> logger,
                          ICommandLineService commandLineService,
                          ITestSummaryParser testSummaryParser,
                          IAutoTestRunnerClient autoTestRunnerClient,
                          ITestDetailParser testDetailParser,
                          IWindowsNotificationService windowsNotificationService)
 {
     _testDetailParser           = testDetailParser;
     _testSummaryParser          = testSummaryParser;
     _windowsNotificationService = windowsNotificationService;
     _autoTestRunnerClient       = autoTestRunnerClient;
     _commandLineService         = commandLineService;
     _logger = logger;
 }
예제 #22
0
        public MainViewModel(
            IOptionsService optionsService,
            ITalkTimerService timerService,
            ISnackbarService snackbarService,
            IHttpServer httpServer,
            ICommandLineService commandLineService,
            ICountdownTimerTriggerService countdownTimerTriggerService,
            IDateTimeService dateTimeService,
            ITimerOutputDisplayService timerOutputDisplayService,
            ICountdownOutputDisplayService countdownDisplayService)
        {
            _commandLineService        = commandLineService;
            _dateTimeService           = dateTimeService;
            _timerOutputDisplayService = timerOutputDisplayService;
            _countdownDisplayService   = countdownDisplayService;

            if (commandLineService.NoGpu || ForceSoftwareRendering())
            {
                // disable hardware (GPU) rendering so that it's all done by the CPU...
                RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly;
            }

            _snackbarService = snackbarService;
            _optionsService  = optionsService;
            _httpServer      = httpServer;
            _timerService    = timerService;
            _countdownTimerTriggerService = countdownTimerTriggerService;

            _httpServer.RequestForTimerDataEvent += OnRequestForTimerData;

            // subscriptions...
            Messenger.Default.Register <NavigateMessage>(this, OnNavigate);
            Messenger.Default.Register <TimerMonitorChangedMessage>(this, OnTimerMonitorChanged);
            Messenger.Default.Register <CountdownMonitorChangedMessage>(this, OnCountdownMonitorChanged);
            Messenger.Default.Register <AlwaysOnTopChangedMessage>(this, OnAlwaysOnTopChanged);
            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());

            Messenger.Default.Send(new NavigateMessage(null, OperatorPageViewModel.PageName, null));

            // (fire and forget)
            Task.Run(LaunchTimerWindowAsync);

            InitHeartbeatTimer();
        }
        public InitialProjectLocationService(IConfigurationService configurationService, ICommandLineService commandLineService,
                                             IFileService fileService, IDirectoryService directoryService, ICommandLineParser commandLineParser)
        {
            Argument.IsNotNull(() => configurationService);
            Argument.IsNotNull(() => commandLineService);
            Argument.IsNotNull(() => fileService);
            Argument.IsNotNull(() => directoryService);
            Argument.IsNotNull(() => commandLineParser);

            _configurationService = configurationService;
            _commandLineService   = commandLineService;
            _fileService          = fileService;
            _directoryService     = directoryService;
            _commandLineParser    = commandLineParser;
        }
예제 #24
0
        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);
        }
예제 #25
0
파일: MainViewModel.cs 프로젝트: fkdl/OnlyM
        public MainViewModel(
            IPageService pageService,
            IOptionsService optionsService,
            ISnackbarService snackbarService,
            IMediaStatusChangingService mediaStatusChangingService,
            IHiddenMediaItemsService hiddenMediaItemsService,
            ICommandLineService commandLineService,
            IDragAndDropService dragAndDropService)
        {
            _commandLineService = commandLineService;

            if (commandLineService.NoGpu || ForceSoftwareRendering())
            {
                // disable hardware (GPU) rendering so that it's all done by the CPU...
                RenderOptions.ProcessRenderMode = RenderMode.SoftwareOnly;
            }

            Messenger.Default.Register <MediaListUpdatingMessage>(this, OnMediaListUpdating);
            Messenger.Default.Register <MediaListUpdatedMessage>(this, OnMediaListUpdated);

            _mediaStatusChangingService = mediaStatusChangingService;
            _hiddenMediaItemsService    = hiddenMediaItemsService;

            _hiddenMediaItemsService.HiddenItemsChangedEvent += HandleHiddenItemsChangedEvent;

            _pageService = pageService;
            _pageService.NavigationEvent              += HandlePageNavigationEvent;
            _pageService.MediaMonitorChangedEvent     += HandleMediaMonitorChangedEvent;
            _pageService.MediaWindowVisibilityChanged += HandleMediaWindowVisibilityChangedEvent;

            _snackbarService = snackbarService;

            _optionsService = optionsService;
            _optionsService.AlwaysOnTopChangedEvent += HandleAlwaysOnTopChangedEvent;

            _pageService.GotoOperatorPage();

            dragAndDropService.CopyingFilesProgressEvent += HandleCopyingFilesProgressEvent;

            InitCommands();

            if (!IsInDesignMode && _optionsService.Options.PermanentBackdrop)
            {
                _pageService.OpenMediaWindow(requiresVisibleWindow: true);
            }

            GetVersionData();
        }
예제 #26
0
 private bool ForwardCommand(CommandLineArgs args)
 {
     try
     {
         // wait until the main instance startup/shutdown ends
         this.startupLock.WaitOne();
         ICommandLineService client = CommandLineServer.CreateClient();
         client.ForwardCommand(args);
         return(true);
     }
     catch
     {
         return(false);
     }
     finally
     {
         this.startupLock.ReleaseMutex();
     }
 }
예제 #27
0
        public SettingsPageViewModel(
            IAudioService audioService,
            IOptionsService optionsService,
            ICommandLineService commandLineService)
        {
            Messenger.Default.Register <BeforeShutDownMessage>(this, OnShutDown);
            _optionsService = optionsService;

            _commandLineService = commandLineService;

            _recordingDevices  = audioService.GetRecordingDeviceList().ToList();
            _sampleRates       = optionsService.GetSupportedSampleRates().ToList();
            _channels          = optionsService.GetSupportedChannels().ToList();
            _bitRates          = optionsService.GetSupportedMp3BitRates().ToList();
            _maxRecordingTimes = GenerateMaxRecordingTimeItems();

            NavigateRecordingCommand       = new RelayCommand(NavigateRecording, CanExecuteNavigateRecording);
            ShowRecordingsCommand          = new RelayCommand(ShowRecordings);
            SelectDestinationFolderCommand = new RelayCommand(SelectDestinationFolder);
        }
예제 #28
0
        public RecordingPageViewModel(
            IAudioService audioService,
            IOptionsService optionsService,
            ICommandLineService commandLineService,
            IRecordingDestinationService destinationService,
            ICopyRecordingsService copyRecordingsService,
            ISnackbarService snackbarService,
            ISilenceService silenceService)
        {
            Messenger.Default.Register <BeforeShutDownMessage>(this, OnShutDown);
            Messenger.Default.Register <SessionEndingMessage>(this, OnSessionEnding);

            _commandLineService    = commandLineService;
            _copyRecordingsService = copyRecordingsService;
            _snackbarService       = snackbarService;
            _silenceService        = silenceService;

            _stopwatch = new Stopwatch();

            _audioService = audioService;
            _audioService.StartedEvent           += AudioStartedHandler;
            _audioService.StoppedEvent           += AudioStoppedHandler;
            _audioService.StopRequested          += AudioStopRequestedHandler;
            _audioService.RecordingProgressEvent += AudioProgressHandler;

            _optionsService     = optionsService;
            _destinationService = destinationService;
            _recordingStatus    = RecordingStatus.NotRecording;

            _statusStr = Properties.Resources.NOT_RECORDING;

            // bind commands...
            StartRecordingCommand       = new RelayCommand(StartRecording);
            StopRecordingCommand        = new RelayCommand(StopRecording);
            NavigateSettingsCommand     = new RelayCommand(NavigateSettings);
            ShowRecordingsCommand       = new RelayCommand(ShowRecordings);
            SaveToRemovableDriveCommand = new RelayCommand(SaveToRemovableDrives);

            Messenger.Default.Register <RemovableDriveMessage>(this, OnRemovableDriveMessage);
        }
예제 #29
0
        public SettingsPageViewModel(
            IMonitorsService monitorsService,
            IBellService bellService,
            IOptionsService optionsService,
            ISnackbarService snackbarService,
            ICountdownTimerTriggerService countdownTimerService,
            ICommandLineService commandLineService)
        {
            // subscriptions...
            Messenger.Default.Register <ShutDownMessage>(this, OnShutDown);
            Messenger.Default.Register <BellStatusChangedMessage>(this, OnBellChanged);

            _optionsService        = optionsService;
            _snackbarService       = snackbarService;
            _monitorsService       = monitorsService;
            _bellService           = bellService;
            _countdownTimerService = countdownTimerService;

            _monitors                     = GetSystemMonitors();
            _languages                    = GetSupportedLanguages();
            _operatingModes               = GetOperatingModes();
            _screenLocationItems          = GetScreenLocationItems();
            _countdownDurationItems       = GetCountdownDurationItems();
            _countdownElementsToShowItems = GetCountdownElementsToShowItems();
            _autoMeetingTimes             = GetAutoMeetingTimes();
            _clockHourFormats             = GetClockHourFormats();
            _adaptiveModes                = GetAdaptiveModes();
            _timeOfDayModes               = GetTimeOfDayModes();
            _ports = GetPorts().ToArray();
            _persistDurationItems = optionsService.Options.GetPersistDurationItems();
            _loggingLevels        = GetLoggingLevels();

            // commands...
            NavigateOperatorCommand = new RelayCommand(NavigateOperatorPage);
            TestBellCommand         = new RelayCommand(TestBell, IsNotPlayingBell);
            OpenPortCommand         = new RelayCommand(ReserveAndOpenPort);
            WebClockUrlLinkCommand  = new RelayCommand(OpenWebClockLink);
        }
예제 #30
0
 public SettingsPage(ICommandLineService commandlineService)
 {
     _commandlineService = commandlineService;
     InitializeComponent();
 }