예제 #1
0
        public frmCapture()
        {
            InitializeComponent();
            devices = CaptureDeviceList.Instance;

            if (devices.Count < 1)
            {
                MessageBox.Show("No Devices found on the machine!! ");
                Application.Exit();
            }

            // Add all the devices on the machine to the combo box.
            cmbDevices.Items.AddRange(devices.Select(d => d.Description).ToArray());

            // Select my Ethernet device
            //device = devices.FirstOrDefault(d => d.Description.Contains("Ethernet"));
            //cmbDevices.Text = device.Description;

            //registerHandler();
        }