Exemple #1
0
        private void loadNICs()
        {
            // get the NIC names
            ArrayList nicNames = WMIHelper.GetNICNames();

            // populate the NIC list
            CboNic.Items.Clear();
            foreach (string name in nicNames)
            {
                CboNic.Items.Add(name);
            }

            // if NIC found, select the first one
            if (CboNic.Items.Count > 0)
            {
                CboNic.SelectedIndex = 0;
                //GrpNIC.Enabled = true;   //Not Used
            }
        }