private void btnAgregarCliente_Click(object sender, EventArgs e) { var result = new FrmClientesAlta().ShowDialog(); if (result == System.Windows.Forms.DialogResult.OK) { RefrescarGrilla(); } }
private void btnModificarCliente_Click(object sender, EventArgs e) { int idCliente = Convert.ToInt32(grdClientes.SelectedRows[0].Cells[0].Value); var result = new FrmClientesAlta() { IdCliente = idCliente }.ShowDialog(); if (result == System.Windows.Forms.DialogResult.OK) { RefrescarGrilla(); } }