Exemplo n.º 1
0
        public MainWindowModel(
            ISelectExecuteFileService selectExecuteFileService,
            IShortcutService shortcutService,
            IDialogService dialogService,
            IOpenExolorerService openExolorerService)
        {
            _selectExecuteFileService = selectExecuteFileService;
            _shortcutService          = shortcutService;
            _dialogService            = dialogService;
            _openExolorerService      = openExolorerService;

            _wathcer = new FileSystemWatcher(StartupPath, "*.*")
            {
                EnableRaisingEvents = true
            };
            StartupShortcuts = new[]
            {
                _wathcer.CreatedAsObservable(),
                    _wathcer.ChangedAsObservable(),
                    _wathcer.DeletedAsObservable(),
                    _wathcer.RenamedAsObservable()
            }
            .Merge()
            .Select(_ => GetStartupShorcuts())
            .ToReadOnlyReactivePropertySlim(GetStartupShorcuts());
        }
Exemplo n.º 2
0
 public ShortcutController(IShortcutService shortcutService, IOptions <AppSettings> appSettings, IBusinessService businessService, ILoggingService logService)
 {
     _shortcutService = shortcutService;
     _appSettings     = appSettings;
     _logService      = logService;
     _businessService = businessService;
 }
Exemplo n.º 3
0
 public ShortcutController(IShortcutService shortcutService,
                           IHttpContextAccessor httpContextAccessor, IHttpHelper httpHelper, IOptions <PagerOptions> pagerOptions)
     : base(httpContextAccessor)
 {
     _httpHelper      = httpHelper;
     _shortcutService = shortcutService;
     _pagerOptions    = pagerOptions.Value;
 }
Exemplo n.º 4
0
 public ShortcutsController(
     IShortcutService shortcutService,
     ICategoryService categoryService,
     IApplicationService applicationService)
 {
     this.shortcutService    = shortcutService;
     this.categoryService    = categoryService;
     this.applicationService = applicationService;
 }
Exemplo n.º 5
0
        public RateItViewModel(IShortcutService shortcutService, IActionProvider actionProvider, ISegmentSupervisor segmentSupervisor, IMessageBoxService messageBoxService, EditorController editorController)
        {
            _actionProvider    = actionProvider;
            _segmentSupervisor = segmentSupervisor;
            _messageBoxService = messageBoxService;
            _editorController  = editorController;
            _shortcutService   = shortcutService;

            Initialize();
            UpdateActionTooltips();
        }
Exemplo n.º 6
0
 public DesignerAppService()
 {
     ProcessService  = new DesignerProcessService();
     ShortcutService = new DesignerShortcutService();
 }
Exemplo n.º 7
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="consultationService"></param>
 /// <param name="shortcutService"></param>
 /// <param name="userManagementService"></param>
 public ConsultationController(IConsultationService consultationService, IShortcutService shortcutService, IUserManagementService userManagementService)
 {
     _consultationService   = consultationService;
     _shortcutService       = shortcutService;
     _userManagementService = userManagementService;
 }
 public ShortcutController(IShortcutService shortCutService)
 {
     this.shortCutService = shortCutService;
 }
Exemplo n.º 9
0
 public AppService(IProcessService processService, IShortcutService shortcutService)
 {
     ProcessService  = processService;
     ShortcutService = shortcutService;
 }
        private void initialize(int sensorIdx)
        {
            Enabled = true;
            LastGesture = String.Empty;
            lastGestureTime = DateTime.Now;

            processService = SpringUtil.getService<IProcessService>();
            sensorService = SpringUtil.getService<ISensorService>();
            shortcutService = SpringUtil.getService<IShortcutService>();
            gestureService = SpringUtil.getService<IGestureService>();
            configService = SpringUtil.getService<IConfigService>();

            this.sensorIdx = sensorIdx;
            sensorService.startSensor(sensorIdx);
            gestureService.enableGestureService(sensorService.getSensor(sensorIdx));
        }
Exemplo n.º 11
0
 public NamedPipesSingletonService(IShortcutService shortcutService)
 {
     _shortcutService = shortcutService;
 }
Exemplo n.º 12
0
 public ShortcutResolver(IShortcutService shortcutService, IOptions <PagerOptions> pagerOptions)
     : base()
 {
     _shortcutService = shortcutService;
     _pagerOptions    = pagerOptions.Value;
 }
 public AppShortcutsWindow(IShortcutService shortcutService)
 {
     DataContext = new AppShortcutsViewModel(shortcutService);
     InitializeComponent();
 }