Exemple #1
0
 public PageBlueprintList(
     IDesktopService desktopService,
     IAppSettings appSettings
     )
 {
     DesktopService = desktopService;
     AppSettings    = appSettings;
     InitializeComponent();
     PopulateListForBlueprints();
 }
 public PageCreateBlueprint(
     IDesktopService desktopService,
     IFileSystem fileSystem
     )
 {
     DesktopService = desktopService;
     Storage        = desktopService.ActiveBlueprintStorage;
     Blueprint      = Storage.Blueprint;
     FileSystem     = fileSystem;
     InitializeComponent();
     SetupPage();
 }
        public PersistentWindowProcessor(IDesktopService desktopService, IStateDetector stateDetector, IWindowService windowPositionService, ILogger <PersistentWindowProcessor> logger)
        {
            _desktopService = desktopService ?? throw new ArgumentNullException(nameof(desktopService));
            _stateDetector  = stateDetector ?? throw new ArgumentNullException(nameof(stateDetector));
            _windowService  = windowPositionService ?? throw new ArgumentNullException(nameof(windowPositionService));
            _logger         = logger;

            _delayedCaptureTimer = new Timer(state =>
            {
                _logger?.LogTrace("Delayed capture timer triggered");
                beginCaptureApplicationsOnCurrentDisplays();
            });
        }
 public SyncController(DataContext context,
                       ITokenGenerator tokGen,
                       IDesktopService dService,
                       ISyncService sservice,
                       IMapper mapper
                       )
 {
     _context  = context;
     _tokGen   = tokGen;
     _dService = dService;
     _sservice = sservice;
     _mapper   = mapper;
 }
Exemple #5
0
 public PageBlueprint(
     IDesktopService desktopService
     )
 {
     DesktopService = desktopService;
     Storage        = DesktopService.ActiveBlueprintStorage;
     Blueprint      = Storage.Blueprint;
     InitializeComponent();
     SetupPage();
     Blueprint = DesktopService.ActiveBlueprintStorage.Blueprint;
     RegisterEvents();
     DesktopService.UpdateStatus($"Blueprint Loaded!");
 }
Exemple #6
0
 public AuthController(DataContext context,
                       ITokenGenerator tokGen,
                       IDesktopService dService,
                       ISyncService sservice,
                       IMapper mapper,
                       IOtherServices oService
                       )
 {
     _context  = context;
     _tokGen   = tokGen;
     _dService = dService;
     _sservice = sservice;
     _mapper   = mapper;
     _oService = oService;
 }
 public DesktopsController(IDesktopService Service)
 {
     _desktopService = Service;
 }