Exemplo n.º 1
0
 private void buttonStart_Click(object sender, EventArgs e)
 {
     CameraCapture.StartMainCam();
     timer          = new DispatcherTimer();
     timer.Tick    += ShowInformation;
     timer.Interval = new TimeSpan(0, 0, 0, 0, 1);
     timer.Start();
     buttonStart.Enabled = false;
     buttonStop.Enabled  = true;
 }
Exemplo n.º 2
0
 private void MainTabSelected()
 {
     CameraCapture.StopCam();
     CameraCapture.ImageBoxOutput = imageBoxCameraMain;
     CameraCapture.StartMainCam();
     timer          = new DispatcherTimer();
     timer.Tick    += ShowInformation;
     timer.Interval = new TimeSpan(0, 0, 0, 0, 100);
     timer.Start();
     buttonStart.Enabled = false;
     buttonStop.Enabled  = true;
 }