private void _keyListener_OnHotKeyActivated(object sender, EventArgs e) { var session = _hintProviderService.EnumHints(); if (session != null) { var vm = new OverlayViewModel(session, _hintLabelService); _showOverlay(vm); } }
private void _keyListener_OnTaskbarHotKeyActivated(object sender, EventArgs e) { var taskbarHWnd = User32.FindWindow("Shell_traywnd", ""); var session = _hintProviderService.EnumHints(taskbarHWnd); if (session != null) { var vm = new OverlayViewModel(session, _hintLabelService); _showOverlay(vm); } }