/// <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); }
/// <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); }
//===================================================================== /// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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; }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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(); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
//===================================================================== /// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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; }
/// <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); }
/// <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); }
/// <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); }
/// <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); }