private void Form1_FormClosed(object sender, FormClosedEventArgs e) { UsbHelper.StopSensorData(usb); Environment.Exit(0); }
private void StopButtonClick(object sender, EventArgs e) { UsbHelper.StopSensorData(usb); }