public void SetCamera(int index) { if (Devices.Count < 1) { //throw new IndexOutOfRangeException("There is no device with index " + index); throw new IndexOutOfRangeException("There is no device with index " ); } //SelectedDevice = new VideoCaptureDevice(Devices[index].MonikerString); SelectedDevice = new VideoCaptureDevice(Devices[0].MonikerString); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)