Example #1
0
/*
 * ***********  Metodos cargar datos en ComboBox y otros  **********************
 */

        public void cargarCedulaComboBox()
        {
            cedulaAgregarCorreoComboBox1.Items.Clear();
            cedulaEliminarComboBox.Items.Clear();
            cedulaModificarComboBox.Items.Clear();
            CedulaVendedorVentascomboBox.Items.Clear();

            sisVdatos     sisV = new sisVdatos();
            SqlDataReader dr   = sisV.cargarCedulaPersonal();

            while (dr.Read())
            {
                cedulaAgregarCorreoComboBox1.Items.Add(dr["cedula"].ToString());
                cedulaEliminarComboBox.Items.Add(dr["cedula"].ToString());
                cedulaModificarComboBox.Items.Add(dr["cedula"].ToString());
                CedulaVendedorVentascomboBox.Items.Add(dr["cedula"].ToString());
            }
        }