Example #1
0
 private void activePatientChanged(object sender, HraModelChangedEventArgs e)  // todo Examine eventargs and only update those items
 {
     if (PatientName.InvokeRequired)
     {
         activePatientChangedCallback apcc = new activePatientChangedCallback(activePatientChanged);
         object[] args = new object[2];
         args[0] = sender;
         args[1] = e;
         this.Invoke(apcc, args);
     }
     else
     {
         if (patient.name != null)
         {
             PatientName.Text = patient.name;
         }
         if (patient.age != null)
         {
             age.Text = patient.age;
         }
     }
 }
Example #2
0
 // todo Examine eventargs and only update those items
 private void activePatientChanged(object sender, HraModelChangedEventArgs e)
 {
     if (PatientName.InvokeRequired)
     {
         activePatientChangedCallback apcc = new activePatientChangedCallback(activePatientChanged);
         object[] args = new object[2];
         args[0] = sender;
         args[1] = e;
         this.Invoke(apcc, args);
     }
     else
     {
         if (patient.name != null)
         {
             PatientName.Text = patient.name;
         }
         if (patient.age != null)
         {
             age.Text = patient.age;
         }
     }
 }