/// <summary> /// The method can be called to clear all current property values from the observance. The version and /// rule type are left unchanged. /// </summary> public override void ClearProperties() { startDate = null; offsetFrom = null; offsetTo = null; comment = null; rRules = null; rDates = null; tzNames = null; customProps = null; }
/// <summary> /// This is overridden to allow copying of the additional properties /// </summary> /// <param name="p">The PDI object from which the settings are to be copied</param> protected override void Clone(PDIObject p) { ObservanceRule o = (ObservanceRule)p; this.ClearProperties(); ruleType = o.RuleType; startDate = (StartDateProperty)o.StartDateTime.Clone(); offsetFrom = (TimeZoneOffsetProperty)o.OffsetFrom.Clone(); offsetTo = (TimeZoneOffsetProperty)o.OffsetTo.Clone(); comment = (CommentProperty)o.Comment.Clone(); this.RecurrenceRules.CloneRange(o.RecurrenceRules); this.RecurDates.CloneRange(o.RecurDates); this.TimeZoneNames.CloneRange(o.TimeZoneNames); this.CustomProperties.CloneRange(o.CustomProperties); }