Beispiel #1
0
 private void bStopCapture_Click(object sender, EventArgs e)
 {
     try
     {
         UsbEventSource.StopCapture();
         MessageBox.Show("Capture sesion is stopped");
     }
     catch (Exception ex)
     {
         tbEvents.Text = ex.ToString();
     }
 }
Beispiel #2
0
        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();
            }
        }