Exemplo n.º 1
0
 public static void TriggerRefresh(object sender, EventArgs e)
 {
     if (AppleKeyboardHID2.Registered)
     {
         AppleKeyboardHID2.Shutdown();
     }
     AppleKeyboardHID2.Start();
 }
Exemplo n.º 2
0
 void SystemEvents_PowerModeChanged(object sender, Microsoft.Win32.PowerModeChangedEventArgs e)
 {
     if (e.Mode != Microsoft.Win32.PowerModes.Resume)
     {
         return;
     }
     Thread.Sleep(16000);
     AppleKeyboardHID2.Shutdown();
     AppleKeyboardHID2.Start();
 }
Exemplo n.º 3
0
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     KeyboardListener.UnRegister();
     AppleKeyboardHID2.Shutdown();
 }