Exemple #1
0
        private void btnAgregar_Click(object sender, EventArgs e)
        {
            frmArticulo agregar = new frmArticulo();

            agregar.ShowDialog();
            cargarGrilla();
        }
Exemple #2
0
        private void BtnAgregar_Click(object sender, EventArgs e)
        {
            frmArticulo formularioArticulo = new frmArticulo();

            formularioArticulo.ShowDialog();
            cargarGrilla();
        }
Exemple #3
0
        private void BtnEditar_Click(object sender, EventArgs e)
        {
            Articulo articulo = new Articulo();

            try
            {
                articulo = (Articulo)dgvPrincipal.CurrentRow.DataBoundItem;
                string art = articulo.Imagen;

                frmArticulo articuloModificar = new frmArticulo((Articulo)dgvPrincipal.CurrentRow.DataBoundItem);
                articuloModificar.ShowDialog();
                cargarGrilla();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }