Пример #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;
     }
 }
Пример #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;
 }