private void dgvGrillaPedientePago_DoubleClick(object sender, EventArgs e) { var fFormaDePago = new _00044_FormaPago(comprobanteSeleccionado); fFormaDePago.ShowDialog(); if (fFormaDePago.RealizoVenta) { MessageBox.Show("Los datos se grabaron correctamente"); } }
private void btnEjecutar_Click(object sender, EventArgs e) { if (comprobanteSeleccionado != null) { var fFormaDePago = new _00044_FormaPago(comprobanteSeleccionado); fFormaDePago.ShowDialog(); if (fFormaDePago.RealizoVenta) { CargarDatos(); } } else { MessageBox.Show("Por favor seleccione un comprobante"); } }