public Hooker(CapslockIndicator capslockIndicator) { this.capslockIndicator = capslockIndicator; keyBoardDelegate = KeyboardHookDelegate; keyBoardHandle = SetWindowsHookEx(WH_KEYBOARD_LL, keyBoardDelegate, IntPtr.Zero, 0); }
static void Main(string[] args) { CapslockIndicator capslockIndicator = new CapslockIndicator(); capslockIndicator.run(); }