Exemplo n.º 1
0
        private void btnViewPatientDetails_Click(object sender, EventArgs e)
        {
            ViewPatientDetailsForm viewDetails = new ViewPatientDetailsForm(patientDetail);

            viewDetails.ShowDialog();
            lvPatients_SelectedIndexChanged(sender, e);
        }
Exemplo n.º 2
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     if (txtCnp.Text.Count() != 13)
     {
         MessageBox.Show("CNP does not appear to be valid", "Error");
         return;
     }
     if (dbQuery.checkPatient(Convert.ToInt64(txtCnp.Text)))
     {
         ViewPatientDetailsForm view = new ViewPatientDetailsForm(dbQuery.getPatientDetails(Convert.ToInt64(txtCnp.Text)), user);
         this.Close();
         view.ShowDialog();
     }
     else
     {
         MessageBox.Show("Patient does not exist in database", "No result");
     }
 }