コード例 #1
0
ファイル: ScreenCaster.cs プロジェクト: Baldish/Remotely
 public ScreenCaster(Conductor conductor,
                     ICursorIconWatcher cursorIconWatcher,
                     ISessionIndicator sessionIndicator,
                     IShutdownService shutdownService)
 {
     _conductor         = conductor;
     _cursorIconWatcher = cursorIconWatcher;
     _sessionIndicator  = sessionIndicator;
     _shutdownService   = shutdownService;
 }
コード例 #2
0
ファイル: LimitHandler.cs プロジェクト: jorik041/AppsTracker
 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();
        }