コード例 #1
0
        // Build video source combo
        private void BuildProviderCombo()
        {
            // clean combo
            cameraProvider.Items.Clear();

            // add default item
            cameraProvider.Items.Add("--- Select Provider ---");
            cameraProvider.SelectedIndex = 0;

            // add provider source
            String[] providerList = vsCoreMonitor.ListProviders();
            foreach (String pv in providerList)
            {
                cameraProvider.Items.Add(pv);
            }
        }