コード例 #1
0
 /// <summary>
 /// Remove an existing BusinessHours from the collection
 /// </summary>
 /// <pdGenerated>Default Remove</pdGenerated>
 public void RemoveBusinessHours(BusinessHoursModel oldBusinessHours)
 {
     if (oldBusinessHours == null)
     {
         return;
     }
     if (this.businessHours != null)
     {
         if (this.businessHours.Contains(oldBusinessHours))
         {
             this.businessHours.Remove(oldBusinessHours);
         }
     }
 }
コード例 #2
0
 /// <summary>
 /// Add a new BusinessHours in the collection
 /// </summary>
 /// <pdGenerated>Default Add</pdGenerated>
 public void AddBusinessHours(BusinessHoursModel newBusinessHours)
 {
     if (newBusinessHours == null)
     {
         return;
     }
     if (this.businessHours == null)
     {
         this.businessHours = new System.Collections.Generic.List <BusinessHoursModel>();
     }
     if (!this.businessHours.Contains(newBusinessHours))
     {
         this.businessHours.Add(newBusinessHours);
     }
 }