Example #1
0
        private void specialButton2_Click(object sender, EventArgs e)
        {
            if (actualPanel != null)
            {
                actualPanel.Visible = false;
            }
            actualPanel         = networkPanel;
            actualPanel.Visible = true;
            label2.Visible      = false;
            List <string> adapterName = NetInfo.GetAvailableAdapterName();

            comboBox1.Items.Clear();
            if (adapterName != null && adapterName.Count != 0)
            {
                foreach (string name in adapterName)
                {
                    comboBox1.Items.Add(name);
                }
            }
            else
            {
                label2.Visible = true;
            }
        }