private void activatecam() { if (cmbDevices.SelectedIndex != -1) { PrimeraCamara = DeviceManager.GetDevice(cmbDevices.SelectedIndex); PrimeraCamara.Stop(); PrimeraCamara = DeviceManager.GetDevice(cmbDevices.SelectedIndex); PrimeraCamara.ShowWindow(this.picCapture); } }