Ejemplo n.º 1
0
        private void BridgeDevicelist()
        {
            DataTable     _bl  = BridgeDeviceList.bridgedevicelist();
            List <string> _dvl = new List <string>();

            for (int i = 0; i <= _bl.Rows.Count - 1; i++)
            {
                _dvl.Add(_bl.Rows[i][0].ToString());
                comboBox1.Items.Add(_dvl[i].ToString());
            }
        }
Ejemplo n.º 2
0
        private void _LocalBridge()
        {
            _checkforLocalbridge1();
            DataTable     _bdl  = BridgeDeviceList.bridgedevicelist();
            List <string> _bdvl = new List <string>();

            // _bdvl.Clear();
            for (int i = 0; i <= _bdl.Rows.Count - 1; i++)
            {
                _bdvl.Add(_bdl.Rows[i][0].ToString());
                AvailableInterfaces.Items.Add(_bdvl[i].ToString());
            }
            if (Data.bridgelist.Count == 1)
            {
                L_LocalBridgeBox.Text = "";
                return;
            }
            else
            {
                L_LocalBridgeBox.Text = Data.bridgelist[1];
                //  L_HubNameBox.Text = "BRIDGE";
            }
        }