private void button1_Click(object sender, EventArgs e) { ViewPatientEMR view = new ViewPatientEMR(); view.MdiParent = this.MdiParent; view.viewEMRPatientId = _mySearchId; view.Show(); }
private void btnViewEMR_Click(object sender, EventArgs e) { ViewPatientEMR view = new ViewPatientEMR(); view.viewEMRPatientId = this.patientId.ToString(); view.MdiParent = this.MdiParent; view.Show(); }
private void button1_Click(object sender, EventArgs e) { _mySearchId = patientSearch.Text; dictionary = createCheckPatientExistsDictionary(_mySearchId); dc = new DatabaseConnector(); dtPatient = checkPatientExists(dictionary); if (int.Parse(dtPatient.Rows[0][0].ToString()) > 0) { ViewPatientEMR view = new ViewPatientEMR(); view.viewEMRPatientId = patientSearch.Text.ToString(); view.MdiParent = this.MdiParent; view.Show(); } else { MessageBox.Show("Patient does not exist."); } }