private void StartCameras()
{
// create first video source
var videoSource1 = new VideoCaptureDevice(videoDevices[camera1Combo.SelectedIndex].MonikerString);
// videoSource1.DesiredFrameRate = 10;
videoSourcePlayer1.VideoSource = videoSource1;
videoSourcePlayer1.Start();
// create second video source
if (camera2Combo.Enabled == true)
{
System.Threading.Thread.Sleep(500);
var videoSource2 = new VideoCaptureDevice(videoDevices[camera2Combo.SelectedIndex].MonikerString);
// videoSource2.DesiredFrameRate = 10;
videoSourcePlayer2.VideoSource = videoSource2;
videoSourcePlayer2.Start();
}
// reset stop watch
stopWatch = null;
// start timer
timer.Start();
}