Exemplo n.º 1
0
        public void LlenarCMBCategorias()
        {
            Gestion ges = new Gestion();

            ges.MostrarCategorias();
            cmbCategoria.DataSource    = ges.MostrarCategorias();
            cmbCategoria.ValueMember   = "cod_categoria";
            cmbCategoria.DisplayMember = "nombre";
        }
Exemplo n.º 2
0
        public void Mostrar()
        {
            Gestion ges = new Gestion();

            dataCategorias.DataSource = ges.MostrarCategorias();
            lbTotal.Text = "Total de Registros: " + Convert.ToString(dataCategorias.Rows.Count);
        }
Exemplo n.º 3
0
        private void Productos_Load(object sender, EventArgs e)
        {
            Gestion ges = new Gestion();

            dataCategorias.DataSource = ges.MostrarCategorias();
            lbTotal.Text = "Total de Registros: " + Convert.ToString(dataCategorias.Rows.Count);
            Habilitar(false);
            Botones();
            nombresdecolumnas();
            Limpiar();
            Mostrar();
        }