Пример #1
0
        private void ComboBoxLoad(object sender, RoutedEventArgs e)         //Load Interface
        {
            captureDevices = CaptureDeviceList.Instance;

            if (captureDevices.Count < 1)
            {
                MessageBox.Show("No devices were found on this machine", "Warining", MessageBoxButton.OK);
                return;
            }

            foreach (ICaptureDevice dev in captureDevices)
            {
                select_interface_combo.Items.Add(dev.Name);
            }

            selectedInterface           = select_interface_combo.Items.GetItemAt(0).ToString();
            select_interface_combo.Text = select_interface_combo.Items.GetItemAt(0).ToString();
            pm.NowCatchingDevice        = captureDevices.ElementAt(0);
        }