Exemplo n.º 1
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(recurId, timeZoneIds);

            base.TimeZonesUsed(timeZoneIds);
        }
Exemplo n.º 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);
                }
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
Arquivo: VAlarm.cs Projeto: 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);
 }