Example #1
0
        private void btAlta_Click(object sender, EventArgs e)
        {
            frmClientesABM f = new frmClientesABM();

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

                frmClientesABM f = new frmClientesABM();
                f.clientes = VentasCapas.Business.Clientes.ConsultarPorId(id); //Update.
                f.ShowDialog();
                ActualizarGrilla();
            }
        }