Exemplo n.º 1
0
        //=====================================================================

        /// <summary>
        /// This is overridden to allow cloning of a PDI object
        /// </summary>
        /// <returns>A clone of the object</returns>
        public override object Clone()
        {
            TimeZoneUrlProperty o = new TimeZoneUrlProperty();

            o.Clone(this);
            return(o);
        }
Exemplo n.º 2
0
        /// <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;
        }
Exemplo n.º 3
0
        /// <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);
        }
Exemplo n.º 4
0
        //=====================================================================

        /// <summary>
        /// This is overridden to allow cloning of a PDI object
        /// </summary>
        /// <returns>A clone of the object</returns>
        public override object Clone()
        {
            TimeZoneUrlProperty o = new TimeZoneUrlProperty();
            o.Clone(this);
            return o;
        }