Example #1
0
        private void cedulaCorreoModificarcomboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            correoModificarcomboBox.Items.Clear();
            telefonoModificarcomboBox.Items.Clear();
            correoModificarcomboBox.Text       = "";
            telefonoModificarcomboBox.Text     = "";
            correoNuevoModificartextBox.Text   = "";
            telefonoNuevoModificartextBox.Text = "";

            sisVdatos     sisV = new sisVdatos();
            SqlDataReader dr   = sisV.cargarCorreosPersonas(cedulaCorreoModificarcomboBox.SelectedItem.ToString());

            while (dr.Read())
            {
                correoModificarcomboBox.Items.Add(dr["correo"].ToString());
            }

            SqlDataReader dr1 = sisV.cargarTelefonosPersonas(cedulaCorreoModificarcomboBox.SelectedItem.ToString());

            while (dr1.Read())
            {
                telefonoModificarcomboBox.Items.Add(dr1["telefono"].ToString());
            }
        }