예제 #1
0
 public NotifyService(
     IWindowChecker windowChecker,
     IWindowGetter windowGetter,
     IAutomationRegister automationRegister,
     IDbCommander dbCommander,
     IHotKeyNotifier hotKeyNotifier,
     IGeneralSetting setting)
 {
     _windowChecker      = windowChecker ?? throw new ArgumentNullException(nameof(windowChecker));
     _windowGetter       = windowGetter ?? throw new ArgumentNullException(nameof(windowGetter));
     _automationRegister = automationRegister ?? throw new ArgumentNullException(nameof(automationRegister));
     _dbCommander        = dbCommander ?? throw new ArgumentNullException(nameof(dbCommander));
     _hotKeyNotifier     = hotKeyNotifier ?? throw new ArgumentNullException(nameof(hotKeyNotifier));
     _setting            = setting ?? throw new ArgumentNullException(nameof(setting));
 }
예제 #2
0
 public HotKeyHandler(IHotKeyNotifier hotKeyNotifier, HotKeySettings settings)
 {
     _hotKeyNotifier = hotKeyNotifier;
     _settings       = settings;
     _hotKeyNotifier.HotKeyPressed += hotKeyPressed;
 }