Ejemplo n.º 1
0
 private void Form1_Shown(object sender, EventArgs e)
 {
     cameraDevice = new CameraCaptureDevice();
     comboBoxCamera.Items.AddRange(cameraDevice.GetDevice().ToArray());
     if (comboBoxCamera.Items.Count > 0)
     {
         comboBoxCamera.SelectedIndex = 0;
     }
 }
Ejemplo n.º 2
0
 private void Form1_Shown(object sender, EventArgs e)
 {
     cameraDevice = new CameraCaptureDevice();
     comboBoxCamera.Items.AddRange(cameraDevice.GetDevice().ToArray());
     if (comboBoxCamera.Items.Count > 0) comboBoxCamera.SelectedIndex = 0;
 }