Пример #1
0
        private void btAlta_Click(object sender, EventArgs e)
        {
            frmArticulosABM f = new frmArticulosABM();

            f.articulo = null; //Create.
            f.ShowDialog();
            ActualizarGrilla();
        }
Пример #2
0
        private void btModificar_Click(object sender, EventArgs e)
        {
            if (gv.SelectedRows.Count == 1)
            {
                int id = (int)gv.SelectedRows[0].Cells["Id"].Value;

                frmArticulosABM f = new frmArticulosABM();
                f.articulo = VentasCapas.Business.Articulos.ConsultarPorId(id); //Update.
                f.ShowDialog();
                ActualizarGrilla();
            }
        }