Exemple #1
0
 private void Debug_BatchReceived(object sender, DebugKeyboard.DebugBatchReceivedEventArgs e)
 {
     if (txtLog.InvokeRequired)
         txtLog.Invoke((MethodInvoker)delegate { Log(LogType.Debug, "Batch Input ({0}): {1}", e.Device, e.Data); });
     else
         Log(LogType.Debug, "Batch Input ({0}): {1}", e.Device, e.Data);
 }
Exemple #2
0
 private void StartDebug()
 {
     cmdStartStopDebug.Enabled = false;
     try
     {
         debugScanner = new DebugKeyboard();
         debugScanner.BatchReceived += Debug_BatchReceived;
         StartListen(debugScanner);
         Log(LogType.Debug, "Debugging Started");
         cmdStartStopDebug.Text = "Stop Debug";
     }
     catch (Exception ex)
     {
         Log(LogType.Debug, "Error capturing device: " + ex.Message);
     }
     cmdStartStopDebug.Enabled = true;
 }