示例#1
0
文件: VJournal.cs 项目: nhaberl/PDI
        /// <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);
        }
示例#2
0
        /// <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);
                }
            }
        }
示例#3
0
        /// <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);
        }
示例#4
0
文件: VAlarm.cs 项目: ywscr/PDI
 /// <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);
 }