AerolineaFrba.Abm_Aeronave.Alta.cargarComboCiudades C# (CSharp) Method

cargarComboCiudades() private method

private cargarComboCiudades ( ) : void
return void
        private void cargarComboCiudades()
        {
            cboCiudades.Items.Clear();

            SqlDataReader reader;
            SqlCommand consultaServicios = new SqlCommand();
            consultaServicios.CommandType = CommandType.Text;
            consultaServicios.CommandText = "SELECT CIU_DESC FROM [ABSTRACCIONX4].[CIUDADES]";
            consultaServicios.Connection = Program.conexion();

            reader = consultaServicios.ExecuteReader();

            while (reader.Read())
                this.cboCiudades.Items.Add(reader.GetValue(0));

            reader.Close();
        }