// Add ALL of the time ranges from an existing DailyTimeRange.
 public void AddTimeRange(DailyTimeRange dtr)
 {
     foreach (TimeRange tr in dtr.timeRanges)
     {
         AddTimeRange(tr);
     }
 }
        public void AddTimeRange(zDayOfWeek weekDay, TimeRange tr)
        {
            // Don't add a null TimeRange.
            if (tr == null)
            {
                return;
            }

            // If there is not already a DailyTimeRange for this WeekDay, then
            // create a new DailyTimeRange for the WeekDay.
            if (!dailyTimeRanges.ContainsKey(weekDay) || dailyTimeRanges[weekDay] == null)
            {
                dailyTimeRanges[weekDay] = new DailyTimeRange(weekDay, tr);
            }
            else
            {
                // ADD TO our existing DailyTimeRange for this WeekDay.
                DailyTimeRange existingDTR = dailyTimeRanges[weekDay];
                existingDTR.AddTimeRange(tr);
            }
        }