Пример #1
0
 public ScreenCaster(Conductor conductor,
                     ICursorIconWatcher cursorIconWatcher,
                     ISessionIndicator sessionIndicator,
                     IShutdownService shutdownService)
 {
     _conductor         = conductor;
     _cursorIconWatcher = cursorIconWatcher;
     _sessionIndicator  = sessionIndicator;
     _shutdownService   = shutdownService;
 }
Пример #2
0
 public LimitHandler(Mediator mediator,
                     IUserSettingsService userSettingsService,
                     ILogger logger,
                     IShutdownService shutdownService)
 {
     this.mediator            = mediator;
     this.userSettingsService = userSettingsService;
     this.logger          = logger;
     this.shutdownService = shutdownService;
 }
Пример #3
0
        public MainWindowViewModel(ICommandCenterService commandCenterService, IConfigService configService, IMessageService messageService, IShutdownService shutdownService, IWindowService windowService)
        {
            this.commandCenterService = commandCenterService;
            this.configService        = configService;
            this.messageService       = messageService;
            this.shutdownService      = shutdownService;
            this.windowService        = windowService;

            Initialize();
        }
Пример #4
0
        public MainViewModel(
            IMessenger messenger,
            IConfigurationService configurationService, 
            IConfigurationViewModelFactory configurationViewModelFactory, 
            IJobViewModelFactory jobViewModelFactory, 
            IJobProcessorFactory jobProcessorFactory, 
            IShutdownService shutdownService)
            : base(messenger)
        {
            this.configurationService = configurationService;
            this.configurationViewModelFactory = configurationViewModelFactory;
            this.jobViewModelFactory = jobViewModelFactory;
            this.jobProcessorFactory = jobProcessorFactory;
            this.shutdownService = shutdownService;

            this.LoadConfiguration();

            this.InitialiseCommands();

            Application.Current.Exit += (sender, args) => this.SaveConfiguration();
        }