public void laodNetworksNames() { foreach (string netName in NetworkTopolgy.ImportNetworkNamesAsStrings()) { com_network_name.Items.Add(new ComboBoxItem() { Content = netName }); } }
/// <summary> /// import the network /// </summary> private void ImportNetwork() { List <string> netNames = NetworkTopolgy.ImportNetworkNamesAsStrings(); foreach (string name in netNames) { ComboBoxItem comboBoxItem = new ComboBoxItem() { Content = name }; com_netName.Items.Add(comboBoxItem); } }