Пример #1
0
 //Opens Patient_Xray form sending it the current PatientNumber
 private void btnCreateXray_Click(object sender, EventArgs e)
 {
     /* Sends current PatientNum to X-Ray Form to create new record in the Patient_Xrays table
      */
     if (PatientNum != null)
     {
         Patient_Xray pXray = new Patient_Xray(PatientNum);
         pXray.Show();
     }
     else
     {
         MessageBox.Show("Please look up a patient before creating a new Xray for a patient", "No Patient found");
         textBox_FirstName.Focus();
     }
 }
Пример #2
0
 //Opens Patient_Xray form sending it the current PatientNumber and Xray_ID
 private void btnOpenXray_Click(object sender, EventArgs e)
 {
     /*Send Patient_Xray Form Patient_Xrays data based on the XRay_ID selected from the ComboBox
      * and pull up that data in the Patient_Xrays form */
     if (cboXrayImages.SelectedIndex != -1)
     {
         Patient_Xray pXray = new Patient_Xray(cboXrayImages.SelectedValue.ToString(), PatientNum);
         pXray.Show();
     }
     else
     {
         MessageBox.Show("Please select a record from the drop down list.", "Drop down list item not selected");
         cboXrayImages.Focus();
     }
 }