コード例 #1
0
 public void RemoveMedicineDosage(MedicineDosage oldMedicineDosage)
 {
     if (oldMedicineDosage == null)
     {
         return;
     }
     if (this.medicineDosage != null)
     {
         if (this.medicineDosage.Contains(oldMedicineDosage))
         {
             this.medicineDosage.Remove(oldMedicineDosage);
         }
     }
 }
コード例 #2
0
 public void AddMedicineDosage(MedicineDosage newMedicineDosage)
 {
     if (newMedicineDosage == null)
     {
         return;
     }
     if (this.medicineDosage == null)
     {
         this.medicineDosage = new List <MedicineDosage>();
     }
     if (!this.medicineDosage.Contains(newMedicineDosage))
     {
         this.medicineDosage.Add(newMedicineDosage);
     }
 }