示例#1
0
        public void Dispose()
        {
            if (_form == null)
            {
                return;
            }

            foreach (var hotKeyHandle in _hotkeyHandlesById.Values)
            {
                hotKeyHandle.Dispose();
            }
            _hotkeyHandlesById.Clear();

            _form.Dispose();
            _form = null;
        }
示例#2
0
 public HotKeyManager()
 {
     _form = new HotKeyReceiverWindow();
     _form.HotKeyPressed += HandleHotKeyPressed;
 }
示例#3
0
        public void Dispose()
        {
            if (_form == null)
                return;

            foreach (var hotKeyHandle in _hotkeyHandlesById.Values)
            {
                hotKeyHandle.Dispose();
            }
            _hotkeyHandlesById.Clear();

            _form.Dispose();
            _form = null;
        }
示例#4
0
 public HotKeyManager()
 {
     _form = new HotKeyReceiverWindow();
     _form.HotKeyPressed += HandleHotKeyPressed;
 }