コード例 #1
0
ファイル: VJournal.cs プロジェクト: 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)
        {
            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);
        }
コード例 #2
0
ファイル: AttendeeProperty.cs プロジェクト: 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)
        {
            AttendeeProperty a = (AttendeeProperty)p;

            cuType = a.CalendarUserType;
            expect = a.Expectation;
            role   = a.Role;
            status = a.ParticipationStatus;
            rsvp   = a.Rsvp;

            this.DelegatedFrom.Clear();
            this.DelegatedTo.Clear();
            this.Membership.Clear();

            if (a.DelegatedFrom.Count != 0)
            {
                this.DelegatedFrom.AddRange(a.DelegatedFrom);
            }

            if (a.DelegatedTo.Count != 0)
            {
                this.DelegatedTo.AddRange(a.DelegatedTo);
            }

            if (a.Membership.Count != 0)
            {
                this.Membership.AddRange(a.Membership);
            }

            base.Clone(p);
        }
コード例 #3
0
ファイル: RecurringObject.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)
        {
            RecurringObject o = (RecurringObject)p;

            this.RecurrenceRules.CloneRange(o.RecurrenceRules);
            this.RecurDates.CloneRange(o.RecurDates);
            this.ExceptionRules.CloneRange(o.ExceptionRules);
            this.ExceptionDates.CloneRange(o.ExceptionDates);
        }
コード例 #4
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)
        {
            var clone = (TelephoneProperty)p;

            this.PhoneTypes = clone.PhoneTypes;
            this.UriPrefix  = clone.UriPrefix;

            base.Clone(p);
        }
コード例 #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)
        {
            OrganizerProperty op = (OrganizerProperty)p;

            this.CommonName     = op.CommonName;
            this.DirectoryEntry = op.DirectoryEntry;
            this.SentBy         = op.SentBy;

            base.Clone(p);
        }
コード例 #6
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);
        }
コード例 #7
0
ファイル: VNote.cs プロジェクト: 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);
        }
コード例 #8
0
ファイル: BaseProperty.cs プロジェクト: nhaberl/PDI
        /// <summary>
        /// This is overridden to allow copying values from the specified PDI object into the instance
        /// </summary>
        /// <param name="p">The PDI object from which the settings are to be copied</param>
        /// <remarks>Derived classes must call this method to copy the standard PDI object properties.  It only
        /// needs to be overridden if the derived class has additional properties.</remarks>
        protected override void Clone(PDIObject p)
        {
            BaseProperty o = (BaseProperty)p;

            if (o.Version != SpecificationVersions.None)
            {
                this.Version = o.Version;
            }

            this.Group            = o.Group;
            this.EncodingMethod   = o.EncodingMethod;
            this.CharacterSet     = o.CharacterSet;
            this.Language         = o.Language;
            this.ValueLocation    = o.ValueLocation;
            this.CustomParameters = o.CustomParameters;
            this.Value            = o.Value;
        }
コード例 #9
0
ファイル: VAlarm.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)
        {
            VAlarm o = (VAlarm)p;

            this.ClearProperties();

            action   = (ActionProperty)o.Action.Clone();
            trigger  = (TriggerProperty)o.Trigger.Clone();
            repeat   = (RepeatProperty)o.Repeat.Clone();
            duration = (DurationProperty)o.Duration.Clone();
            summary  = (SummaryProperty)o.Summary.Clone();
            desc     = (DescriptionProperty)o.Description.Clone();

            this.Attendees.CloneRange(o.Attendees);
            this.Attachments.CloneRange(o.Attachments);
            this.CustomProperties.CloneRange(o.CustomProperties);
        }
コード例 #10
0
ファイル: RelatedToProperty.cs プロジェクト: 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)
        {
            RelatedToProperty rtp = (RelatedToProperty)p;

            relType = rtp.RelationshipType;

            if (relType == RelationshipType.Other)
            {
                otherType = rtp.OtherRelationship;
            }
            else
            {
                otherType = null;
            }

            base.Clone(p);
        }
コード例 #11
0
ファイル: FreeBusyProperty.cs プロジェクト: 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)
        {
            FreeBusyProperty fbp = (FreeBusyProperty)p;

            freeBusyType = fbp.FreeBusyType;

            if (freeBusyType == FreeBusyType.Other)
            {
                otherType = fbp.OtherType;
            }
            else
            {
                otherType = null;
            }

            base.Clone(p);
        }
コード例 #12
0
ファイル: ObservanceRule.cs プロジェクト: 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)
        {
            ObservanceRule o = (ObservanceRule)p;

            this.ClearProperties();

            ruleType   = o.RuleType;
            startDate  = (StartDateProperty)o.StartDateTime.Clone();
            offsetFrom = (TimeZoneOffsetProperty)o.OffsetFrom.Clone();
            offsetTo   = (TimeZoneOffsetProperty)o.OffsetTo.Clone();
            comment    = (CommentProperty)o.Comment.Clone();

            this.RecurrenceRules.CloneRange(o.RecurrenceRules);
            this.RecurDates.CloneRange(o.RecurDates);
            this.TimeZoneNames.CloneRange(o.TimeZoneNames);
            this.CustomProperties.CloneRange(o.CustomProperties);
        }
コード例 #13
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)
        {
            VCard o = (VCard)p;

            this.ClearProperties();

            groupName = o.Group;

            fn     = (FormattedNameProperty)o.FormattedName.Clone();
            name   = (NameProperty)o.Name.Clone();
            title  = (TitleProperty)o.Title.Clone();
            role   = (RoleProperty)o.Role.Clone();
            mailer = (MailerProperty)o.Mailer.Clone();
            url    = (UrlProperty)o.Url.Clone();
            org    = (OrganizationProperty)o.Organization.Clone();
            uid    = (UniqueIdProperty)o.UniqueId.Clone();
            bday   = (BirthDateProperty)o.BirthDate.Clone();
            rev    = (LastRevisionProperty)o.LastRevision.Clone();
            tz     = (TimeZoneProperty)o.TimeZone.Clone();
            geo    = (GeographicPositionProperty)o.GeographicPosition.Clone();
            key    = (PublicKeyProperty)o.PublicKey.Clone();
            photo  = (PhotoProperty)o.Photo.Clone();
            logo   = (LogoProperty)o.Logo.Clone();
            sound  = (SoundProperty)o.Sound.Clone();

            this.Notes.CloneRange(o.Notes);
            this.Addresses.CloneRange(o.Addresses);
            this.Labels.CloneRange(o.Labels);
            this.Telephones.CloneRange(o.Telephones);
            this.EMailAddresses.CloneRange(o.EMailAddresses);
            this.Agents.CloneRange(o.Agents);
            this.CustomProperties.CloneRange(o.CustomProperties);

            addProfile     = o.AddProfile;
            mimeName       = (MimeNameProperty)o.MimeName.Clone();
            mimeSource     = (MimeSourceProperty)o.MimeSource.Clone();
            prodId         = (ProductIdProperty)o.ProductId.Clone();
            nickname       = (NicknameProperty)o.Nickname.Clone();
            sortString     = (SortStringProperty)o.SortString.Clone();
            classification = (ClassificationProperty)o.Classification.Clone();
            categories     = (CategoriesProperty)o.Categories.Clone();
        }
コード例 #14
0
ファイル: VFreeBusy.cs プロジェクト: 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)
        {
            VFreeBusy o = (VFreeBusy)p;

            this.ClearProperties();

            url       = (UrlProperty)o.Url.Clone();
            uid       = (UniqueIdProperty)o.UniqueId.Clone();
            startDate = (StartDateProperty)o.StartDateTime.Clone();
            endDate   = (EndDateProperty)o.EndDateTime.Clone();
            timeStamp = (TimeStampProperty)o.TimeStamp.Clone();
            comment   = (CommentProperty)o.Comment.Clone();
            organizer = (OrganizerProperty)o.Organizer.Clone();
            duration  = (DurationProperty)o.Duration.Clone();
            contact   = (ContactProperty)o.Contact.Clone();

            this.Attendees.CloneRange(o.Attendees);
            this.RequestStatuses.CloneRange(o.RequestStatuses);
            this.FreeBusy.CloneRange(o.FreeBusy);
            this.CustomProperties.CloneRange(o.CustomProperties);
        }
コード例 #15
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);
        }
コード例 #16
0
ファイル: VCard.cs プロジェクト: modulexcite/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)
        {
            VCard o = (VCard)p;

            this.ClearProperties();

            groupName = o.Group;

            fn = (FormattedNameProperty)o.FormattedName.Clone();
            name = (NameProperty)o.Name.Clone();
            title = (TitleProperty)o.Title.Clone();
            role = (RoleProperty)o.Role.Clone();
            mailer = (MailerProperty)o.Mailer.Clone();
            url = (UrlProperty)o.Url.Clone();
            org = (OrganizationProperty)o.Organization.Clone();
            uid = (UniqueIdProperty)o.UniqueId.Clone();
            bday = (BirthDateProperty)o.BirthDate.Clone();
            rev = (LastRevisionProperty)o.LastRevision.Clone();
            tz = (TimeZoneProperty)o.TimeZone.Clone();
            geo = (GeographicPositionProperty)o.GeographicPosition.Clone();
            key = (PublicKeyProperty)o.PublicKey.Clone();
            photo = (PhotoProperty)o.Photo.Clone();
            logo = (LogoProperty)o.Logo.Clone();
            sound = (SoundProperty)o.Sound.Clone();

            this.Notes.CloneRange(o.Notes);
            this.Addresses.CloneRange(o.Addresses);
            this.Labels.CloneRange(o.Labels);
            this.Telephones.CloneRange(o.Telephones);
            this.EMailAddresses.CloneRange(o.EMailAddresses);
            this.Agents.CloneRange(o.Agents);
            this.CustomProperties.CloneRange(o.CustomProperties);

            addProfile = o.AddProfile;
            mimeName = (MimeNameProperty)o.MimeName.Clone();
            mimeSource = (MimeSourceProperty)o.MimeSource.Clone();
            prodId = (ProductIdProperty)o.ProductId.Clone();
            nickname = (NicknameProperty)o.Nickname.Clone();
            sortString = (SortStringProperty)o.SortString.Clone();
            classification = (ClassificationProperty)o.Classification.Clone();
            categories = (CategoriesProperty)o.Categories.Clone();
        }
コード例 #17
0
ファイル: PublicKeyProperty.cs プロジェクト: modulexcite/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)
 {
     this.KeyType = ((PublicKeyProperty)p).KeyType;
     base.Clone(p);
 }
コード例 #18
0
ファイル: AttachProperty.cs プロジェクト: modulexcite/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)
 {
     this.FormatType = ((AttachProperty)p).FormatType;
     base.Clone(p);
 }
コード例 #19
0
ファイル: VEvent.cs プロジェクト: modulexcite/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)
        {
            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);
        }
コード例 #20
0
ファイル: TriggerProperty.cs プロジェクト: modulexcite/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)
 {
     relatedToEnd = ((TriggerProperty)p).RelatedToEnd;
     base.Clone(p);
 }
コード例 #21
0
ファイル: TelephoneProperty.cs プロジェクト: machocr/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)
 {
     this.PhoneTypes = ((TelephoneProperty)p).PhoneTypes;
     base.Clone(p);
 }
コード例 #22
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)
 {
     timeZoneId = ((RDateProperty)p).TimeZoneId;
     base.Clone(p);
 }
コード例 #23
0
ファイル: PhotoProperty.cs プロジェクト: modulexcite/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)
 {
     this.ImageType = ((PhotoProperty)p).ImageType;
     base.Clone(p);
 }
コード例 #24
0
ファイル: FreeBusyProperty.cs プロジェクト: modulexcite/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)
        {
            FreeBusyProperty fbp = (FreeBusyProperty)p;

            freeBusyType = fbp.FreeBusyType;

            if(freeBusyType == FreeBusyType.Other)
                otherType = fbp.OtherType;
            else
                otherType = null;

            base.Clone(p);
        }
コード例 #25
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)
        {
            this.AlternateRepresentation = ((BaseAltRepProperty)p).AlternateRepresentation;
            base.Clone(p);
        }
コード例 #26
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)
 {
     this.FormatType = ((AttachProperty)p).FormatType;
     base.Clone(p);
 }
コード例 #27
0
ファイル: ObservanceRule.cs プロジェクト: modulexcite/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)
        {
            ObservanceRule o = (ObservanceRule)p;

            this.ClearProperties();

            ruleType = o.RuleType;
            startDate = (StartDateProperty)o.StartDateTime.Clone();
            offsetFrom = (TimeZoneOffsetProperty)o.OffsetFrom.Clone();
            offsetTo = (TimeZoneOffsetProperty)o.OffsetTo.Clone();
            comment = (CommentProperty)o.Comment.Clone();

            this.RecurrenceRules.CloneRange(o.RecurrenceRules);
            this.RecurDates.CloneRange(o.RecurDates);
            this.TimeZoneNames.CloneRange(o.TimeZoneNames);
            this.CustomProperties.CloneRange(o.CustomProperties);
        }
コード例 #28
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)
 {
     range = ((RecurrenceIdProperty)p).Range;
     base.Clone(p);
 }
コード例 #29
0
ファイル: VJournal.cs プロジェクト: modulexcite/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)
        {
            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);
        }
コード例 #30
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)
 {
     range = ((RecurrenceIdProperty)p).Range;
     base.Clone(p);
 }
コード例 #31
0
ファイル: BaseAltRepProperty.cs プロジェクト: modulexcite/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)
        {
            this.AlternateRepresentation = ((BaseAltRepProperty)p).AlternateRepresentation;
            base.Clone(p);
        }
コード例 #32
0
ファイル: VAlarm.cs プロジェクト: modulexcite/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)
        {
            VAlarm o = (VAlarm)p;

            this.ClearProperties();

            action = (ActionProperty)o.Action.Clone();
            trigger = (TriggerProperty)o.Trigger.Clone();
            repeat = (RepeatProperty)o.Repeat.Clone();
            duration = (DurationProperty)o.Duration.Clone();
            summary = (SummaryProperty)o.Summary.Clone();
            desc = (DescriptionProperty)o.Description.Clone();

            this.Attendees.CloneRange(o.Attendees);
            this.Attachments.CloneRange(o.Attachments);
            this.CustomProperties.CloneRange(o.CustomProperties);
        }
コード例 #33
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)
 {
     relatedToEnd = ((TriggerProperty)p).RelatedToEnd;
     base.Clone(p);
 }
コード例 #34
0
ファイル: MimeSourceProperty.cs プロジェクト: modulexcite/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)
 {
     this.Context = ((MimeSourceProperty)p).Context;
     base.Clone(p);
 }
コード例 #35
0
ファイル: SoundProperty.cs プロジェクト: modulexcite/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)
 {
     soundType = ((SoundProperty)p).SoundType;
     base.Clone(p);
 }
コード例 #36
0
ファイル: EMailProperty.cs プロジェクト: 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)
 {
     this.EMailTypes = ((EMailProperty)p).EMailTypes;
     base.Clone(p);
 }
コード例 #37
0
ファイル: RelatedToProperty.cs プロジェクト: modulexcite/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)
        {
            RelatedToProperty rtp = (RelatedToProperty)p;

            relType = rtp.RelationshipType;

            if(relType == RelationshipType.Other)
                otherType = rtp.OtherRelationship;
            else
                otherType = null;

            base.Clone(p);
        }
コード例 #38
0
ファイル: PublicKeyProperty.cs プロジェクト: machocr/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)
 {
     this.KeyType = ((PublicKeyProperty)p).KeyType;
     base.Clone(p);
 }
コード例 #39
0
ファイル: MimeSourceProperty.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)
 {
     this.Context = ((MimeSourceProperty)p).Context;
     base.Clone(p);
 }
コード例 #40
0
ファイル: TelephoneProperty.cs プロジェクト: modulexcite/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)
 {
     phoneTypes = ((TelephoneProperty)p).PhoneTypes;
     base.Clone(p);
 }
コード例 #41
0
ファイル: EMailProperty.cs プロジェクト: modulexcite/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)
 {
     this.EMailTypes = ((EMailProperty)p).EMailTypes;
     base.Clone(p);
 }
コード例 #42
0
ファイル: RDateProperty.cs プロジェクト: modulexcite/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)
 {
     timeZoneId = ((RDateProperty)p).TimeZoneId;
     base.Clone(p);
 }
コード例 #43
0
ファイル: BaseProperty.cs プロジェクト: modulexcite/PDI
        /// <summary>
        /// This is overridden to allow copying values from the specified PDI object into the instance
        /// </summary>
        /// <param name="p">The PDI object from which the settings are to be copied</param>
        /// <remarks>Derived classes must call this method to copy the standard PDI object properties.  It only
        /// needs to be overridden if the derived class has additional properties.</remarks>
        protected override void Clone(PDIObject p)
        {
            BaseProperty o = (BaseProperty)p;

            if(o.Version != SpecificationVersions.None)
                this.Version = o.Version;

            this.Group = o.Group;
            this.EncodingMethod = o.EncodingMethod;
            this.CharacterSet = o.CharacterSet;
            this.Language = o.Language;
            this.ValueLocation = o.ValueLocation;
            this.CustomParameters = o.CustomParameters;
            this.Value = o.Value;
        }
コード例 #44
0
ファイル: RecurringObject.cs プロジェクト: modulexcite/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)
        {
            RecurringObject o = (RecurringObject)p;

            this.RecurrenceRules.CloneRange(o.RecurrenceRules);
            this.RecurDates.CloneRange(o.RecurDates);
            this.ExceptionRules.CloneRange(o.ExceptionRules);
            this.ExceptionDates.CloneRange(o.ExceptionDates);
        }
コード例 #45
0
ファイル: VCalendar.cs プロジェクト: modulexcite/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)
        {
            VCalendar o = (VCalendar)p;

            this.ClearProperties();

            prodId = (ProductIdProperty)o.ProductId.Clone();
            calScale = (CalendarScaleProperty)o.CalendarScale.Clone();
            method = (MethodProperty)o.Method.Clone();
            geo = (GeographicPositionProperty)o.VCalendarGeographicPosition.Clone();
            tz = (TimeZoneProperty)o.VCalendarTimeZone.Clone();
            daylight = (DaylightProperty)o.VCalendarDaylightRule.Clone();

            this.Events.CloneRange(o.Events);
            this.ToDos.CloneRange(o.ToDos);
            this.Journals.CloneRange(o.Journals);
            this.FreeBusys.CloneRange(o.FreeBusys);
            this.CustomProperties.CloneRange(o.CustomProperties);
        }
コード例 #46
0
ファイル: AddressProperty.cs プロジェクト: modulexcite/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)
 {
     this.AddressTypes = ((AddressProperty)p).AddressTypes;
     base.Clone(p);
 }
コード例 #47
0
ファイル: PhotoProperty.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)
 {
     this.ImageType = ((PhotoProperty)p).ImageType;
     base.Clone(p);
 }
コード例 #48
0
ファイル: AddressProperty.cs プロジェクト: modulexcite/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)
 {
     this.AddressTypes = ((AddressProperty)p).AddressTypes;
     base.Clone(p);
 }
コード例 #49
0
ファイル: AttendeeProperty.cs プロジェクト: modulexcite/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)
        {
            AttendeeProperty a = (AttendeeProperty)p;

            cuType = a.CalendarUserType;
            expect = a.Expectation;
            role = a.Role;
            status = a.ParticipationStatus;
            rsvp = a.Rsvp;

            this.DelegatedFrom.Clear();
            this.DelegatedTo.Clear();
            this.Membership.Clear();

            if(a.DelegatedFrom.Count != 0)
                this.DelegatedFrom.AddRange(a.DelegatedFrom);

            if(a.DelegatedTo.Count != 0)
                this.DelegatedTo.AddRange(a.DelegatedTo);

            if(a.Membership.Count != 0)
                this.Membership.AddRange(a.Membership);

            base.Clone(p);
        }
コード例 #50
0
ファイル: VFreeBusy.cs プロジェクト: modulexcite/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)
        {
            VFreeBusy o = (VFreeBusy)p;

            this.ClearProperties();

            url = (UrlProperty)o.Url.Clone();
            uid = (UniqueIdProperty)o.UniqueId.Clone();
            startDate = (StartDateProperty)o.StartDateTime.Clone();
            endDate = (EndDateProperty)o.EndDateTime.Clone();
            timeStamp = (TimeStampProperty)o.TimeStamp.Clone();
            comment = (CommentProperty)o.Comment.Clone();
            organizer = (OrganizerProperty)o.Organizer.Clone();
            duration = (DurationProperty)o.Duration.Clone();
            contact = (ContactProperty)o.Contact.Clone();

            this.Attendees.CloneRange(o.Attendees);
            this.RequestStatuses.CloneRange(o.RequestStatuses);
            this.FreeBusy.CloneRange(o.FreeBusy);
            this.CustomProperties.CloneRange(o.CustomProperties);
        }
コード例 #51
0
ファイル: VNote.cs プロジェクト: modulexcite/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);
        }
コード例 #52
0
ファイル: VTimeZone.cs プロジェクト: modulexcite/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);
        }
コード例 #53
0
ファイル: SoundProperty.cs プロジェクト: redtetrahedron/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)
 {
     this.SoundType = ((SoundProperty)p).SoundType;
     base.Clone(p);
 }
コード例 #54
0
ファイル: OrganizerProperty.cs プロジェクト: modulexcite/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)
        {
            OrganizerProperty op = (OrganizerProperty)p;

            this.CommonName = op.CommonName;
            this.DirectoryEntry = op.DirectoryEntry;
            this.SentBy = op.SentBy;

            base.Clone(p);
        }