Ejemplo n.º 1
0
 public Switcher()
 {
     kbdHook = new KeyboardHook();
     kbdHook.KeyboardEvent += ProcessKeyPress;
     mouseHook = new MouseHook();
     mouseHook.MouseEvent += ProcessMousePress;
 }
Ejemplo n.º 2
0
 public Switcher(ISettings settings)
 {
     this.settings = settings;
     kbdHook = new KeyboardHook();
     kbdHook.KeyboardEvent += ProcessKeyPress;
     mouseHook = new MouseHook();
     mouseHook.MouseEvent += ProcessMousePress;
 }