コード例 #1
0
ファイル: VTimeZone.cs プロジェクト: ywscr/PDI
        /// <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;
        }
コード例 #2
0
ファイル: VTimeZone.cs プロジェクト: ywscr/PDI
        /// <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);
        }