Esempio n. 1
0
 public MainWindow()
 {
     InitializeComponent();
     var register = new HotKeyRegisterer(this, Surprise, HotKeyMods.Control | HotKeyMods.Alt, ConsoleKey.B);
 }
Esempio n. 2
0
 //create new hot key for hidding and showing the window
 private void Window_SourceInitialized(object sender, EventArgs e)
 {
     HotKeyRegisterer hotKey = new HotKeyRegisterer(this, OnHotKeyDown, HotKeyMods.Control, ConsoleKey.NumPad0);
 }