//===================================================================== /// <summary> /// This is overridden to allow cloning of a PDI object /// </summary> /// <returns>A clone of the object</returns> public override object Clone() { TimeZoneIdProperty o = new TimeZoneIdProperty(); o.Clone(this); return(o); }
/// <summary> /// The method can be called to clear all current property values from the time zone. The version is /// left unchanged. /// </summary> public override void ClearProperties() { if(timeZoneId != null) { timeZoneId.TimeZoneIdChanged -= tzid_TimeZoneIdChanged; timeZoneId = null; } timeZoneUrl = null; lastMod = null; rules = 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) { VTimeZone o = (VTimeZone)p; this.ClearProperties(); timeZoneId = (TimeZoneIdProperty)o.TimeZoneId.Clone(); timeZoneId.TimeZoneIdChanged += tzid_TimeZoneIdChanged; timeZoneUrl = (TimeZoneUrlProperty)o.TimeZoneUrl.Clone(); lastMod = (LastModifiedProperty)o.LastModified.Clone(); this.ObservanceRules.CloneRange(o.ObservanceRules); this.CustomProperties.CloneRange(o.CustomProperties); }
//===================================================================== /// <summary> /// This is overridden to allow cloning of a PDI object /// </summary> /// <returns>A clone of the object</returns> public override object Clone() { TimeZoneIdProperty o = new TimeZoneIdProperty(); o.Clone(this); return o; }