Ejemplo n.º 1
0
 /// <summary>
 /// Remove an existing KosUnit from the collection
 /// </summary>
 /// <pdGenerated>Default Remove</pdGenerated>
 public void RemoveDefine(KosUnit oldKosUnit)
 {
     if (oldKosUnit == null)
     {
         return;
     }
     if (this.define != null)
     {
         if (this.define.Contains(oldKosUnit))
         {
             this.define.Remove(oldKosUnit);
         }
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Add a new KosUnit in the collection
 /// </summary>
 /// <pdGenerated>Default Add</pdGenerated>
 public void AddDefine(KosUnit newKosUnit)
 {
     if (newKosUnit == null)
     {
         return;
     }
     if (this.define == null)
     {
         this.define = new System.Collections.Generic.List <KosUnit>();
     }
     if (!this.define.Contains(newKosUnit))
     {
         this.define.Add(newKosUnit);
     }
 }