Esempio n. 1
0
 /// <summary>
 /// Remove an existing ItemCount from the collection
 /// </summary>
 /// <pdGenerated>Default Remove</pdGenerated>
 public void RemoveItemCount(ItemCount oldItemCount)
 {
     if (oldItemCount == null)
     {
         return;
     }
     if (this.itemCount != null)
     {
         if (this.itemCount.Contains(oldItemCount))
         {
             this.itemCount.Remove(oldItemCount);
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Add a new ItemCount in the collection
 /// </summary>
 /// <pdGenerated>Default Add</pdGenerated>
 public void AddItemCount(ItemCount newItemCount)
 {
     if (newItemCount == null)
     {
         return;
     }
     if (this.itemCount == null)
     {
         this.itemCount = new System.Collections.Generic.List <ItemCount>();
     }
     if (!this.itemCount.Contains(newItemCount))
     {
         this.itemCount.Add(newItemCount);
     }
 }