예제 #1
0
 /// <summary>
 /// Remove an existing MedicalExam from the collection
 /// </summary>
 /// <pdGenerated>Default Remove</pdGenerated>
 public void RemoveMedicalExam(MedicalExam oldMedicalExam)
 {
     if (oldMedicalExam == null)
     {
         return;
     }
     if (this.medicalExam != null)
     {
         if (this.medicalExam.Contains(oldMedicalExam))
         {
             this.medicalExam.Remove(oldMedicalExam);
             oldMedicalExam.Room = null;
         }
     }
 }
예제 #2
0
 /// <summary>
 /// Add a new MedicalExam in the collection
 /// </summary>
 /// <pdGenerated>Default Add</pdGenerated>
 public void AddMedicalExam(MedicalExam newMedicalExam)
 {
     if (newMedicalExam == null)
     {
         return;
     }
     if (this.medicalExam == null)
     {
         this.medicalExam = new System.Collections.Generic.List <MedicalExam>();
     }
     if (!this.medicalExam.Contains(newMedicalExam))
     {
         this.medicalExam.Add(newMedicalExam);
         newMedicalExam.Room = this;
     }
 }