private void btnNuevo_Click(object sender, EventArgs e) { frmABMCliente formulario = new frmABMCliente(); formulario.ShowDialog(); btnConsultar_Click(sender, e); }
private void btnQuitar_Click(object sender, EventArgs e) { frmABMCliente formulario = new frmABMCliente(); var cliente = (BugTracker.Entities.Clientes)dgvClientes.CurrentRow.DataBoundItem; formulario.InicializarFormulario(frmABMCliente.FormMode.delete, cliente); formulario.ShowDialog(); btnConsultar_Click(sender, e); }