/// <summary> /// This is used to set the selected time zone in all date/time objects in the component without /// modifying the date/time values. /// </summary> /// <param name="vTimeZone">A <see cref="VTimeZone"/> object that will be used for all date/time objects /// in the component.</param> /// <remarks>This method does not affect the date/time values</remarks> public override void SetTimeZone(VTimeZone vTimeZone) { CalendarObject.SetPropertyTimeZone(startDate, vTimeZone); CalendarObject.SetPropertyTimeZone(recurId, vTimeZone); base.SetTimeZone(vTimeZone); }
/// <summary> /// This is used to set the selected time zone in all date/time objects in the component without /// modifying the date/time values. /// </summary> /// <param name="vTimeZone">A <see cref="VTimeZone"/> object that will be used for all date/time objects /// in the component.</param> /// <remarks>This method does not affect the date/time values</remarks> public override void SetTimeZone(VTimeZone vTimeZone) { if (rDates != null) { foreach (RDateProperty rdt in rDates) { if (vTimeZone == null || rdt.TimeZoneId != vTimeZone.TimeZoneId.Value) { // If the time zone is null, just clear the time zone ID if (vTimeZone == null) { rdt.TimeZoneId = null; } else { rdt.TimeZoneId = vTimeZone.TimeZoneId.Value; } } } } if (exDates != null) { foreach (ExDateProperty edt in exDates) { CalendarObject.SetPropertyTimeZone(edt, vTimeZone); } } }
/// <summary> /// This is used to set the selected time zone in all date/time objects in the component without /// modifying the date/time values. /// </summary> /// <param name="vTimeZone">A <see cref="VTimeZone"/> object that will be used for all date/time objects /// in the component.</param> /// <remarks>This method does not affect the date/time values</remarks> public override void SetTimeZone(VTimeZone vTimeZone) { CalendarObject.SetPropertyTimeZone(startDate, vTimeZone); CalendarObject.SetPropertyTimeZone(endDate, vTimeZone); CalendarObject.SetPropertyTimeZone(recurId, vTimeZone); if (alarms != null) { alarms.SetTimeZone(vTimeZone); } base.SetTimeZone(vTimeZone); }
/// <summary> /// This is used to set the selected time zone in all date/time objects in the component without /// modifying the date/time values. /// </summary> /// <param name="vTimeZone">A <see cref="VTimeZone"/> object that will be used for all date/time objects /// in the component.</param> /// <remarks>This method does not affect the date/time values</remarks> public override void SetTimeZone(VTimeZone vTimeZone) { CalendarObject.SetPropertyTimeZone(startDate, vTimeZone); CalendarObject.SetPropertyTimeZone(endDate, vTimeZone); }
/// <summary> /// This is used to set the selected time zone in all date/time objects in the component without /// modifying the date/time values. /// </summary> /// <param name="vTimeZone">A <see cref="VTimeZone"/> object that will be used for all date/time objects /// in the component.</param> /// <remarks>This method does not affect the date/time values</remarks> public override void SetTimeZone(VTimeZone vTimeZone) { CalendarObject.SetPropertyTimeZone(trigger, vTimeZone); }