/// <summary> /// This is used to get a list of time zones used by all owned objects /// </summary> /// <param name="timeZoneIds">A <see cref="StringCollection"/> that will be used to store the list of /// unique time zone IDs used by the calendar objects.</param> public override void TimeZonesUsed(StringCollection timeZoneIds) { CalendarObject.AddTimeZoneIfUsed(startDate, timeZoneIds); CalendarObject.AddTimeZoneIfUsed(recurId, timeZoneIds); base.TimeZonesUsed(timeZoneIds); }
/// <summary> /// This is used to get a list of time zones used by all owned objects /// </summary> /// <param name="timeZoneIds">A <see cref="StringCollection"/> that will be used to store the list of /// unique time zone IDs used by the calendar objects.</param> public override void TimeZonesUsed(StringCollection timeZoneIds) { string timeZoneId; if (rDates != null) { foreach (RDateProperty rdt in rDates) { if (rdt.ValueLocation == ValLocValue.DateTime && rdt.TimeZoneDateTime != DateTime.MinValue) { timeZoneId = rdt.TimeZoneId; if (timeZoneId != null && !timeZoneIds.Contains(timeZoneId)) { timeZoneIds.Add(timeZoneId); } } } } if (exDates != null) { foreach (ExDateProperty edt in exDates) { CalendarObject.AddTimeZoneIfUsed(edt, timeZoneIds); } } }
/// <summary> /// This is used to get a list of time zones used by all owned objects /// </summary> /// <param name="timeZoneIds">A <see cref="StringCollection"/> that will be used to store the list of /// unique time zone IDs used by the calendar objects.</param> public override void TimeZonesUsed(StringCollection timeZoneIds) { CalendarObject.AddTimeZoneIfUsed(startDate, timeZoneIds); CalendarObject.AddTimeZoneIfUsed(endDate, timeZoneIds); CalendarObject.AddTimeZoneIfUsed(recurId, timeZoneIds); if (alarms != null) { alarms.TimeZonesUsed(timeZoneIds); } base.TimeZonesUsed(timeZoneIds); }
/// <summary> /// This is used to get a list of time zones used by all owned objects /// </summary> /// <param name="timeZoneIds">A <see cref="StringCollection"/> that will be used to store the list of /// unique time zone IDs used by the calendar objects.</param> public override void TimeZonesUsed(StringCollection timeZoneIds) { CalendarObject.AddTimeZoneIfUsed(trigger, timeZoneIds); }