private void xk24_1_DeviceUnplug(Xk24.XKeyPlugEventArgs e) { //System.Media.SystemSounds.Beep.Play(); deviceStatus.Text = "XK-24 Unplugged, Unit ID: " + e.UID.ToString() + ", OEM ID: " + e.OEMVersionID.ToString() + ", Product ID: " + e.PID.ToString() + " " + testcnt.ToString(); deviceStatus.ForeColor = Color.Red; lblUID.Text = "Unit ID: "; lblOEM.Text = "OEM ID: "; lblProductID.Text = "Product ID: "; }
private void HandleUnplug(Xk24.XKeyPlugEventArgs e) { deviceStatus.Text = "XK-24 Unplugged, Unit ID: " + e.UID.ToString() + ", OEM ID: " + e.OEMVersionID.ToString() + ", Product ID: " + e.PID.ToString(); deviceStatus.ForeColor = Color.Red; lblUID.Text = "Unit ID: "; lblOEM.Text = "OEM ID: "; lblProductID.Text = "Product ID: "; }
private void xk24_1_DevicePlug(Xk24.XKeyPlugEventArgs e) { deviceStatus.Text = "XK-24 Plugged, Unit ID: " + e.UID.ToString() + ", OEM ID: " + e.OEMVersionID.ToString() + ", Product ID: " + e.PID.ToString() + " " + testcnt.ToString(); deviceStatus.ForeColor = Color.Green; lblUID.Text = "Unit ID: " + e.UID.ToString(); lblOEM.Text = "OEM ID: " + e.OEMVersionID.ToString(); lblProductID.Text = "Product ID: " + e.PID.ToString(); }
private void xk24_1_DevicePlug(Xk24.XKeyPlugEventArgs e) { HandlePlug(e); }