private void btnAgregarProntoPago_Click(object sender, EventArgs e) { DetalleProveedorProntoPago m = new DetalleProveedorProntoPago(); m.ProveedorId = Proveedor.ProveedorID; m.ShowDialog(); }
private void dgvProntoPago_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e == null) return; if (e.RowIndex == -1) return; if (this.dgvProntoPago.CurrentRow == null) return; DetalleProveedorProntoPago p = new DetalleProveedorProntoPago(Util.Entero(this.dgvProntoPago.CurrentRow.Cells["ProveedorProntoPagoID"].Value)); p.ProveedorId = Proveedor.ProveedorID; p.ShowDialog(); }