private void btnBPac_Click(object sender, EventArgs e) { this.id_paciente = ""; frmSeekPac frmSeekPac = new frmSeekPac(0); frmSeekPac.FormClosed += new FormClosedEventHandler(frmSeekPac_FormClosed); frmSeekPac.Show(); this.Hide(); }
private void btnNuevo_Click(object sender, EventArgs e) { this.lnew = true; lstPersonal.Enabled = false; this.habil(true); this.clears(); General.setAll <Button, bool>(this, "Enabled", false); btnCancelar.Enabled = true; btnGrabar.Enabled = true; if (MessageBox.Show("Desea buscar en base de datos alterna ... ?", "Aviso", MessageBoxButtons.OKCancel) == DialogResult.OK) { frmSeekPac frmSeekPac = new frmSeekPac(1); frmSeekPac.FormClosed += new FormClosedEventHandler(frmSeekPac_FormClosed); frmSeekPac.Show(); this.Hide(); } else { txtNombres.Focus(); } }