Пример #1
0
        /// <summary>
        /// This is used to replace an old time zone ID with a new time zone ID in all properties of a calendar
        /// object.
        /// </summary>
        /// <param name="oldId">The old ID being replaced</param>
        /// <param name="newId">The new ID to use</param>
        public override void UpdateTimeZoneId(string oldId, string newId)
        {
            CalendarObject.UpdatePropertyTimeZoneId(startDate, oldId, newId);
            CalendarObject.UpdatePropertyTimeZoneId(recurId, oldId, newId);

            base.UpdateTimeZoneId(oldId, newId);
        }
Пример #2
0
        /// <summary>
        /// This is used to replace an old time zone ID with a new time zone ID in all properties of a calendar
        /// object.
        /// </summary>
        /// <param name="oldId">The old ID being replaced</param>
        /// <param name="newId">The new ID to use</param>
        public override void UpdateTimeZoneId(string oldId, string newId)
        {
            CalendarObject.UpdatePropertyTimeZoneId(startDate, oldId, newId);
            CalendarObject.UpdatePropertyTimeZoneId(endDate, oldId, newId);
            CalendarObject.UpdatePropertyTimeZoneId(recurId, oldId, newId);

            if (alarms != null)
            {
                alarms.UpdateTimeZoneId(oldId, newId);
            }

            base.UpdateTimeZoneId(oldId, newId);
        }
Пример #3
0
        /// <summary>
        /// This is used to replace an old time zone ID with a new time zone ID in all properties of a calendar
        /// object.
        /// </summary>
        /// <param name="oldId">The old ID being replaced</param>
        /// <param name="newId">The new ID to use</param>
        public override void UpdateTimeZoneId(string oldId, string newId)
        {
            if (rDates != null)
            {
                foreach (RDateProperty rdt in rDates)
                {
                    if (rdt.TimeZoneId == oldId)
                    {
                        rdt.TimeZoneId = newId;
                    }
                }
            }

            if (exDates != null)
            {
                foreach (ExDateProperty edt in exDates)
                {
                    CalendarObject.UpdatePropertyTimeZoneId(edt, oldId, newId);
                }
            }
        }
Пример #4
0
 /// <summary>
 /// This is used to replace an old time zone ID with a new time zone ID in all properties of a calendar
 /// object.
 /// </summary>
 /// <param name="oldId">The old ID being replaced</param>
 /// <param name="newId">The new ID to use</param>
 public override void UpdateTimeZoneId(string oldId, string newId)
 {
     CalendarObject.UpdatePropertyTimeZoneId(trigger, oldId, newId);
 }