コード例 #1
0
        private void actualizar()
        {
            comboBox1.Items.Clear();
            webCam.Listar();
            try
            {
                comboBox1.SelectedIndex = 0;
                webCam.EncenderCamara(Convert.ToInt16(comboBox1.SelectedIndex.ToString().Substring(0, 1)));
            }
            catch (Exception err)
            {
                string error   = err.Message;
                Form   mensaje = new Mensaje("No existe un dispositivo de camara donde se pueda conectar", true);

                mensaje.ShowDialog(); string funcion = "actualizar";
                Utilerias.LOG.write(_clase, funcion, error);
            }
        }