예제 #1
0
        private void btnAddUSB_Click(object sender, EventArgs e)
        {
            AForge.Video.DirectShow.VideoCaptureDeviceForm frm = new AForge.Video.DirectShow.VideoCaptureDeviceForm();
            if (frm.ShowDialog() == DialogResult.OK)
            {
                Control[] deviceCombo = frm.Controls.Find("devicesCombo", true);
                string deviceName = ((ComboBox)deviceCombo[0]).SelectedItem.ToString();
                Shared.IMocapRecorder recorder = new Shared.Recorders.USBMocapRecorder(frm.VideoDevice, deviceName, frm.VideoDeviceMoniker);

                cameraCheckboxListCtrl1.Items.Add(recorder);
                GlobalData.GetInst().Cameras.Add(recorder);
            }
        }
예제 #2
0
        private void btnAddUSB_Click(object sender, EventArgs e)
        {
            AForge.Video.DirectShow.VideoCaptureDeviceForm frm = new AForge.Video.DirectShow.VideoCaptureDeviceForm();
            if (frm.ShowDialog() == DialogResult.OK)
            {
                Control[]             deviceCombo = frm.Controls.Find("devicesCombo", true);
                string                deviceName  = ((ComboBox)deviceCombo[0]).SelectedItem.ToString();
                Shared.IMocapRecorder recorder    = new Shared.Recorders.USBMocapRecorder(frm.VideoDevice, deviceName, frm.VideoDeviceMoniker);

                cameraCheckboxListCtrl1.Items.Add(recorder);
                GlobalData.GetInst().Cameras.Add(recorder);
            }
        }