Example #1
0
File: VAlarm.cs Project: ywscr/PDI
        /// <summary>
        /// This is used to propagate the version to all properties in the object that need it
        /// </summary>
        public override void PropagateVersion()
        {
            if (action != null)
            {
                action.Version = this.Version;
            }

            if (trigger != null)
            {
                trigger.Version = this.Version;
            }

            if (repeat != null)
            {
                repeat.Version = this.Version;
            }

            if (duration != null)
            {
                duration.Version = this.Version;
            }

            if (summary != null)
            {
                summary.Version = this.Version;
            }

            if (desc != null)
            {
                desc.Version = this.Version;
            }

            if (attendees != null)
            {
                attendees.PropagateVersion(this.Version);
            }

            if (attachments != null)
            {
                attachments.PropagateVersion(this.Version);
            }

            if (customProps != null)
            {
                customProps.PropagateVersion(this.Version);
            }
        }
Example #2
0
        /// <summary>
        /// This is used to propagate the version to all properties in the object that need it
        /// </summary>
        public override void PropagateVersion()
        {
            if (classification != null)
            {
                classification.Version = this.Version;
            }

            if (categories != null)
            {
                categories.Version = this.Version;
            }

            if (resources != null)
            {
                resources.Version = this.Version;
            }

            if (url != null)
            {
                url.Version = this.Version;
            }

            if (uid != null)
            {
                uid.Version = this.Version;
            }

            if (geo != null)
            {
                geo.Version = this.Version;
            }

            if (lastMod != null)
            {
                lastMod.Version = this.Version;
            }

            if (dateCreated != null)
            {
                dateCreated.Version = this.Version;
            }

            if (startDate != null)
            {
                startDate.Version = this.Version;
            }

            if (endDate != null)
            {
                endDate.Version = this.Version;
            }

            if (this.Version == SpecificationVersions.vCalendar10)
            {
                if (rNum != null)
                {
                    rNum.Version = this.Version;
                }
            }
            else
            {
                if (dateStamp != null)
                {
                    dateStamp.Version = this.Version;
                }

                if (comment != null)
                {
                    comment.Version = this.Version;
                }

                if (organizer != null)
                {
                    organizer.Version = this.Version;
                }

                if (recurId != null)
                {
                    recurId.Version = this.Version;
                }

                if (contacts != null)
                {
                    contacts.PropagateVersion(this.Version);
                }

                if (reqStats != null)
                {
                    reqStats.PropagateVersion(this.Version);
                }
            }

            if (summary != null)
            {
                summary.Version = this.Version;
            }

            if (desc != null)
            {
                desc.Version = this.Version;
            }

            if (location != null)
            {
                location.Version = this.Version;
            }

            if (priority != null)
            {
                priority.Version = this.Version;
            }

            if (sequence != null)
            {
                sequence.Version = this.Version;
            }

            if (transp != null)
            {
                transp.Version = this.Version;
            }

            if (status != null)
            {
                status.Version = this.Version;
            }

            if (duration != null)
            {
                duration.Version = this.Version;
            }

            if (attendees != null)
            {
                attendees.PropagateVersion(this.Version);
            }

            if (relatedTo != null)
            {
                relatedTo.PropagateVersion(this.Version);
            }

            if (attachments != null)
            {
                attachments.PropagateVersion(this.Version);
            }

            if (alarms != null)
            {
                alarms.PropagateVersion(this.Version);
            }

            if (customProps != null)
            {
                customProps.PropagateVersion(this.Version);
            }

            base.PropagateVersion();
        }
Example #3
0
        /// <summary>
        /// This is used to propagate the version to all properties in the object that need it
        /// </summary>
        public override void PropagateVersion()
        {
            if (classification != null)
            {
                classification.Version = this.Version;
            }

            if (categories != null)
            {
                categories.Version = this.Version;
            }

            if (url != null)
            {
                url.Version = this.Version;
            }

            if (uid != null)
            {
                uid.Version = this.Version;
            }

            if (lastMod != null)
            {
                lastMod.Version = this.Version;
            }

            if (dateCreated != null)
            {
                dateCreated.Version = this.Version;
            }

            if (startDate != null)
            {
                startDate.Version = this.Version;
            }

            if (timeStamp != null)
            {
                timeStamp.Version = this.Version;
            }

            if (summary != null)
            {
                summary.Version = this.Version;
            }

            if (desc != null)
            {
                desc.Version = this.Version;
            }

            if (sequence != null)
            {
                sequence.Version = this.Version;
            }

            if (comment != null)
            {
                comment.Version = this.Version;
            }

            if (organizer != null)
            {
                organizer.Version = this.Version;
            }

            if (recurId != null)
            {
                recurId.Version = this.Version;
            }

            if (status != null)
            {
                status.Version = this.Version;
            }

            if (contacts != null)
            {
                contacts.PropagateVersion(this.Version);
            }

            if (attendees != null)
            {
                attendees.PropagateVersion(this.Version);
            }

            if (relatedTo != null)
            {
                relatedTo.PropagateVersion(this.Version);
            }

            if (attachments != null)
            {
                attachments.PropagateVersion(this.Version);
            }

            if (reqStats != null)
            {
                reqStats.PropagateVersion(this.Version);
            }

            if (customProps != null)
            {
                customProps.PropagateVersion(this.Version);
            }

            base.PropagateVersion();
        }