Beispiel #1
0
        public HotKeyManager(WindowManagerSettings settings)
        {
            _settings = settings ?? throw new ArgumentNullException(nameof(settings));
            _errors   = new List <string>();

            _sizeSelection = new SizeSelection(_settings);
            _hookHotKey    = new KeyBoardHookHotKey();
            RegisterHotKeys();
        }
        public HotKeyManager(Settings.Settings settings)
        {
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }

            _errors   = new List <string>();
            _settings = settings;

            ISizeSelection exportedValue = GetSizeSelectionInstance();

            _sizeSelection = exportedValue;
            _hookHotKey    = new KeyBoardHookHotKey();
            RegisterHotKeys();
        }