//Update Health Records
 private void UpdateEvent_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         addPatientEventForm updateEvent = new addPatientEventForm();
         int index = patientRecordsViewSource.View.CurrentPosition;
         updateEvent.eventID   = _HealthyPeopleDB_TestDataSet.PatientRecords[index].PatientEventID;
         updateEvent.patientID = _HealthyPeopleDB_TestDataSet.PatientRecords[index].PatientID;
         updateEvent.typeTag   = "Update";
         updateEvent.ShowDialog();
         if (updateEvent.DialogResult == System.Windows.Forms.DialogResult.OK)
         {
             LoadGrid(updateEvent.patientID);
             updateEvent.Dispose();
         }
         else
         {
             updateEvent.Dispose();
         }
     }
     catch (Exception ex)
     { MessageBox.Show(ex.Source, ex.StackTrace); }
 }
        //Add new health event to patient records
        private void AddEvent_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                addPatientEventForm addEvent = new addPatientEventForm();
                addEvent.patientID = patientIDRec;
                addEvent.typeTag   = "New";
                addEvent.ShowDialog();

                if (addEvent.DialogResult == System.Windows.Forms.DialogResult.OK)
                {
                    LoadGrid(patientIDRec);
                    addEvent.Dispose();
                }
                else
                {
                    addEvent.Dispose();
                }
            }
            catch (Exception ex)
            {
                System.Windows.MessageBox.Show(ex.Source, ex.Message);
            }
        }