private void btnNuevo_Click(object sender, EventArgs e) { frmPrincipal.CodVale = null; FrmRegistrarVale frm = new FrmRegistrarVale(); frm.ShowDialog(); }
private void btnAbrir_Click(object sender, EventArgs e) { if (Grilla.CurrentRow == null) { Mensaje("Debe seleccionar un elemeto"); return; } frmPrincipal.CodVale = Convert.ToInt32(Grilla.CurrentRow.Cells[0].Value.ToString()); FrmRegistrarVale frm = new FrmRegistrarVale(); frm.ShowDialog(); }