private void btnPolizaAgregar_Click(object sender, EventArgs e) { var frmPoliza = new PolizaContable(); frmPoliza.ShowDialog(Principal.Instance); frmPoliza.Dispose(); }
private void dgvDetalle_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (this.dgvDetalle.CurrentRow == null) { return; } int iPolizaID = Util.Entero(this.dgvDetalle.CurrentRow.Cells["ContaPolizaID"].Value); var frmPoliza = new PolizaContable(); frmPoliza.ModPolizaID = iPolizaID; frmPoliza.HacerModificacionMinima(); if (frmPoliza.ShowDialog(Principal.Instance) == DialogResult.OK) { this.LlenarArbol(); } frmPoliza.Dispose(); }
private void dgvDetalle_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (this.dgvDetalle.CurrentRow == null) return; int iPolizaID = Util.Entero(this.dgvDetalle.CurrentRow.Cells["ContaPolizaID"].Value); var frmPoliza = new PolizaContable(); frmPoliza.ModPolizaID = iPolizaID; frmPoliza.HacerModificacionMinima(); if (frmPoliza.ShowDialog(Principal.Instance) == DialogResult.OK) this.LlenarArbol(); frmPoliza.Dispose(); }