Beispiel #1
0
 /// <summary>
 /// Remove an existing DrugBatch from the collection
 /// </summary>
 /// <pdGenerated>Default Remove</pdGenerated>
 public void RemoveDrugBatch(DrugBatch oldDrugBatch)
 {
     if (oldDrugBatch == null)
     {
         return;
     }
     if (this.drugBatch != null)
     {
         if (this.drugBatch.Contains(oldDrugBatch))
         {
             this.drugBatch.Remove(oldDrugBatch);
         }
     }
 }
Beispiel #2
0
 /// <summary>
 /// Add a new DrugBatch in the collection
 /// </summary>
 /// <pdGenerated>Default Add</pdGenerated>
 public void AddDrugBatch(DrugBatch newDrugBatch)
 {
     if (newDrugBatch == null)
     {
         return;
     }
     if (this.drugBatch == null)
     {
         this.drugBatch = new System.Collections.Generic.List <DrugBatch>();
     }
     if (!this.drugBatch.Contains(newDrugBatch))
     {
         this.drugBatch.Add(newDrugBatch);
     }
 }