//register the show hook (keyboard combination to show the application) void registerShowHook() { KeyboardHook showHook = new KeyboardHook(); showHook.KeyPressed += new EventHandler<KeyPressedEventArgs>(shoHook_KeyPressed); showHook.RegisterHotKey(TimeTracker.ModifierKeys.Control | TimeTracker.ModifierKeys.Shift, Keys.Up); }
//register the hide hook (keyboard combination to hide the application) void registerHideHook() { KeyboardHook hideHook = new KeyboardHook(); hideHook.KeyPressed += new EventHandler<KeyPressedEventArgs>(hideHook_KeyPressed); hideHook.RegisterHotKey(TimeTracker.ModifierKeys.Control | TimeTracker.ModifierKeys.Shift, Keys.Down); }