Ejemplo n.º 1
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)
        {
            VJournal o = (VJournal)p;

            this.ClearProperties();

            classification = (ClassificationProperty)o.Classification.Clone();
            categories     = (CategoriesProperty)o.Categories.Clone();
            url            = (UrlProperty)o.Url.Clone();
            uid            = (UniqueIdProperty)o.UniqueId.Clone();
            lastMod        = (LastModifiedProperty)o.LastModified.Clone();
            dateCreated    = (DateCreatedProperty)o.DateCreated.Clone();
            startDate      = (StartDateProperty)o.StartDateTime.Clone();
            timeStamp      = (TimeStampProperty)o.TimeStamp.Clone();
            summary        = (SummaryProperty)o.Summary.Clone();
            desc           = (DescriptionProperty)o.Description.Clone();
            sequence       = (SequenceProperty)o.Sequence.Clone();
            comment        = (CommentProperty)o.Comment.Clone();
            organizer      = (OrganizerProperty)o.Organizer.Clone();
            recurId        = (RecurrenceIdProperty)o.RecurrenceId.Clone();
            status         = (StatusProperty)o.Status.Clone();

            this.Contacts.CloneRange(o.Contacts);
            this.Attendees.CloneRange(o.Attendees);
            this.RelatedTo.CloneRange(o.RelatedTo);
            this.Attachments.CloneRange(o.Attachments);
            this.RequestStatuses.CloneRange(o.RequestStatuses);
            this.CustomProperties.CloneRange(o.CustomProperties);

            base.Clone(p);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// The method can be called to clear all current property values from the journal.  The version is left
        /// unchanged.
        /// </summary>
        public override void ClearProperties()
        {
            classification = null;
            categories     = null;
            url            = null;
            uid            = null;
            lastMod        = null;
            dateCreated    = null;
            startDate      = null;
            timeStamp      = null;
            summary        = null;
            desc           = null;
            sequence       = null;
            comment        = null;
            organizer      = null;
            recurId        = null;
            status         = null;

            contacts    = null;
            attendees   = null;
            relatedTo   = null;
            attachments = null;
            reqStats    = null;
            customProps = null;

            base.ClearProperties();
        }
Ejemplo n.º 3
0
Archivo: VNote.cs Proyecto: nhaberl/PDI
        /// <summary>
        /// The method can be called to clear all current property values from the vNote.  The version is left
        /// unchanged.
        /// </summary>
        public void ClearProperties()
        {
            uid            = null;
            summary        = null;
            body           = null;
            classification = null;
            categories     = null;
            dateCreated    = null;
            lastModified   = null;

            customProps = null;
        }
Ejemplo n.º 4
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;
        }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
0
Archivo: VNote.cs Proyecto: nhaberl/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)
        {
            VNote o = (VNote)p;

            this.ClearProperties();

            dateCreated    = (DateCreatedProperty)o.DateCreated.Clone();
            lastModified   = (LastModifiedProperty)o.LastModified.Clone();
            summary        = (SummaryProperty)o.Summary.Clone();
            body           = (BodyProperty)o.Body.Clone();
            classification = (ClassificationProperty)o.Classification.Clone();
            categories     = (CategoriesProperty)o.Categories.Clone();
            uid            = (UniqueIdProperty)o.UniqueId.Clone();

            this.CustomProperties.CloneRange(o.CustomProperties);
        }
Ejemplo n.º 7
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)
        {
            VEvent o = (VEvent)p;

            this.ClearProperties();

            classification = (ClassificationProperty)o.Classification.Clone();
            categories     = (CategoriesProperty)o.Categories.Clone();
            resources      = (ResourcesProperty)o.Resources.Clone();
            url            = (UrlProperty)o.Url.Clone();
            uid            = (UniqueIdProperty)o.UniqueId.Clone();
            geo            = (GeographicPositionProperty)o.GeographicPosition.Clone();
            lastMod        = (LastModifiedProperty)o.LastModified.Clone();
            dateCreated    = (DateCreatedProperty)o.DateCreated.Clone();
            startDate      = (StartDateProperty)o.StartDateTime.Clone();
            endDate        = (EndDateProperty)o.EndDateTime.Clone();
            dateStamp      = (TimeStampProperty)o.TimeStamp.Clone();
            summary        = (SummaryProperty)o.Summary.Clone();
            desc           = (DescriptionProperty)o.Description.Clone();
            location       = (LocationProperty)o.Location.Clone();
            priority       = (PriorityProperty)o.Priority.Clone();
            sequence       = (SequenceProperty)o.Sequence.Clone();
            transp         = (TimeTransparencyProperty)o.Transparency.Clone();
            rNum           = (RecurrenceCountProperty)o.RecurrenceCount.Clone();
            comment        = (CommentProperty)o.Comment.Clone();
            organizer      = (OrganizerProperty)o.Organizer.Clone();
            recurId        = (RecurrenceIdProperty)o.RecurrenceId.Clone();
            status         = (StatusProperty)o.Status.Clone();
            duration       = (DurationProperty)o.Duration.Clone();

            this.Contacts.CloneRange(o.Contacts);
            this.Attendees.CloneRange(o.Attendees);
            this.RelatedTo.CloneRange(o.RelatedTo);
            this.Attachments.CloneRange(o.Attachments);
            this.RequestStatuses.CloneRange(o.RequestStatuses);
            this.Alarms.CloneRange(o.Alarms);
            this.CustomProperties.CloneRange(o.CustomProperties);

            base.Clone(p);
        }
Ejemplo n.º 8
0
        /// <summary>
        /// The method can be called to clear all current property values from the vNote.  The version is left
        /// unchanged.
        /// </summary>
        public void ClearProperties()
        {
            uid = null;
            summary = null;
            body = null;
            classification = null;
            categories = null;
            dateCreated = null;
            lastModified = null;

            customProps = null;
        }
Ejemplo n.º 9
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)
        {
            VNote o = (VNote)p;

            this.ClearProperties();

            dateCreated = (DateCreatedProperty)o.DateCreated.Clone();
            lastModified = (LastModifiedProperty)o.LastModified.Clone();
            summary = (SummaryProperty)o.Summary.Clone();
            body = (BodyProperty)o.Body.Clone();
            classification = (ClassificationProperty)o.Classification.Clone();
            categories = (CategoriesProperty)o.Categories.Clone();
            uid = (UniqueIdProperty)o.UniqueId.Clone();

            this.CustomProperties.CloneRange(o.CustomProperties);
        }
Ejemplo n.º 10
0
        /// <summary>
        /// The method can be called to clear all current property values from the event.  The version is left
        /// unchanged.
        /// </summary>
        public override void ClearProperties()
        {
            classification = null;
            categories = null;
            resources = null;
            url = null;
            uid = null;
            geo = null;
            lastMod = null;
            dateCreated = null;
            startDate = null;
            endDate = null;
            dateStamp = null;
            summary = null;
            desc = null;
            location = null;
            priority = null;
            sequence = null;
            transp = null;
            rNum = null;
            comment = null;
            organizer = null;
            recurId = null;
            status = null;
            duration = null;

            contacts = null;
            attendees = null;
            relatedTo = null;
            attachments = null;
            reqStats = null;
            alarms = null;

            customProps = null;

            base.ClearProperties();
        }
Ejemplo n.º 11
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)
        {
            VEvent o = (VEvent)p;

            this.ClearProperties();

            classification = (ClassificationProperty)o.Classification.Clone();
            categories = (CategoriesProperty)o.Categories.Clone();
            resources = (ResourcesProperty)o.Resources.Clone();
            url = (UrlProperty)o.Url.Clone();
            uid = (UniqueIdProperty)o.UniqueId.Clone();
            geo = (GeographicPositionProperty)o.GeographicPosition.Clone();
            lastMod = (LastModifiedProperty)o.LastModified.Clone();
            dateCreated = (DateCreatedProperty)o.DateCreated.Clone();
            startDate = (StartDateProperty)o.StartDateTime.Clone();
            endDate = (EndDateProperty)o.EndDateTime.Clone();
            dateStamp = (TimeStampProperty)o.TimeStamp.Clone();
            summary = (SummaryProperty)o.Summary.Clone();
            desc = (DescriptionProperty)o.Description.Clone();
            location = (LocationProperty)o.Location.Clone();
            priority = (PriorityProperty)o.Priority.Clone();
            sequence = (SequenceProperty)o.Sequence.Clone();
            transp = (TimeTransparencyProperty)o.Transparency.Clone();
            rNum = (RecurrenceCountProperty)o.RecurrenceCount.Clone();
            comment = (CommentProperty)o.Comment.Clone();
            organizer = (OrganizerProperty)o.Organizer.Clone();
            recurId = (RecurrenceIdProperty)o.RecurrenceId.Clone();
            status = (StatusProperty)o.Status.Clone();
            duration = (DurationProperty)o.Duration.Clone();

            this.Contacts.CloneRange(o.Contacts);
            this.Attendees.CloneRange(o.Attendees);
            this.RelatedTo.CloneRange(o.RelatedTo);
            this.Attachments.CloneRange(o.Attachments);
            this.RequestStatuses.CloneRange(o.RequestStatuses);
            this.Alarms.CloneRange(o.Alarms);
            this.CustomProperties.CloneRange(o.CustomProperties);

            base.Clone(p);
        }
Ejemplo n.º 12
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)
        {
            VJournal o = (VJournal)p;

            this.ClearProperties();

            classification = (ClassificationProperty)o.Classification.Clone();
            categories = (CategoriesProperty)o.Categories.Clone();
            url = (UrlProperty)o.Url.Clone();
            uid = (UniqueIdProperty)o.UniqueId.Clone();
            lastMod = (LastModifiedProperty)o.LastModified.Clone();
            dateCreated = (DateCreatedProperty)o.DateCreated.Clone();
            startDate = (StartDateProperty)o.StartDateTime.Clone();
            timeStamp = (TimeStampProperty)o.TimeStamp.Clone();
            summary = (SummaryProperty)o.Summary.Clone();
            desc = (DescriptionProperty)o.Description.Clone();
            sequence = (SequenceProperty)o.Sequence.Clone();
            comment = (CommentProperty)o.Comment.Clone();
            organizer = (OrganizerProperty)o.Organizer.Clone();
            recurId = (RecurrenceIdProperty)o.RecurrenceId.Clone();
            status = (StatusProperty)o.Status.Clone();

            this.Contacts.CloneRange(o.Contacts);
            this.Attendees.CloneRange(o.Attendees);
            this.RelatedTo.CloneRange(o.RelatedTo);
            this.Attachments.CloneRange(o.Attachments);
            this.RequestStatuses.CloneRange(o.RequestStatuses);
            this.CustomProperties.CloneRange(o.CustomProperties);

            base.Clone(p);
        }
Ejemplo n.º 13
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;
        }
Ejemplo n.º 14
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);
        }