public void UpdateHolidays(IEnumerable <Holiday> newHolidays)
 {
     lock (_holidaysLock)
     {
         Holidays.Clear();
         Holidays.AddRange(newHolidays);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Release object and sources
 /// </summary>
 public void Dispose()
 {
     Holidays.Clear();
     WorkTimes.Clear();
 }