private void bStopCapture_Click(object sender, EventArgs e) { try { UsbEventSource.StopCapture(); MessageBox.Show("Capture sesion is stopped"); } catch (Exception ex) { tbEvents.Text = ex.ToString(); } }
private void bStartCapture_Click(object sender, EventArgs e) { string session = tbSessionName.Text; try { UsbEventSource.StartCapture(session, tbFile.Text); MessageBox.Show("Capture sesion is started"); } catch (Exception ex) { tbEvents.Text = ex.ToString(); } }