private void fllDropDownServer() { List <string> Servidores = new List <string>(); SqlConexion myconexion = new SqlConexion(); Servidores = myconexion.consulta("SELECT DISTINCT nombreServidor FROM DevServices "); for (int i = 0; i < Servidores.Count; i++) { if (DropDownServer.Items.FindByText(Servidores[i]) == null) { DropDownServer.Items.Add(Servidores[i]); } } }
private void fllDropDownServer() { List<string> Servidores = new List<string>(); SqlConexion myconexion = new SqlConexion(); Servidores = myconexion.consulta("SELECT DISTINCT nombreServidor FROM DevServices "); for (int i = 0; i < Servidores.Count; i++) { if (DropDownServer.Items.FindByText(Servidores[i]) == null) { DropDownServer.Items.Add(Servidores[i]); } } }