//=====================================================================

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

            o.Clone(this);
            return(o);
        }
Beispiel #2
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();
        }
Beispiel #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)
        {
            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);
        }
Beispiel #4
0
        /// <summary>
        /// The method can be called to clear all current property values in the calendar.  The version is left
        /// unchanged.
        /// </summary>
        /// <remarks>Because time zone information is shared amongst all calendars, the <see cref="TimeZones"/>
        /// collection will not be cleared.  If you want it cleared, you must do it manually.</remarks>
        public override void ClearProperties()
        {
            prodId = null;
            calScale = null;
            method = null;
            geo = null;
            tz = null;
            daylight = null;

            events = null;
            todos = null;
            journals = null;
            freebusy = null;

            customProps = null;
        }
Beispiel #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)
        {
            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 cloning of a PDI object
        /// </summary>
        /// <returns>A clone of the object</returns>
        public override object Clone()
        {
            GeographicPositionProperty o = new GeographicPositionProperty();
            o.Clone(this);
            return o;
        }
Beispiel #7
0
        /// <summary>
        /// The method can be called to clear all current property values from the vCard.  The version is left
        /// unchanged.
        /// </summary>
        public void ClearProperties()
        {
            groupName = null;

            fn = null;
            name = null;
            title = null;
            role = null;
            mailer = null;
            url = null;
            org = null;
            uid = null;
            bday = null;
            rev = null;
            tz = null;
            geo = null;
            key = null;
            photo = null;
            logo = null;
            sound = null;

            notes = null;
            addrs = null;
            labels = null;
            phones = null;
            email = null;
            agents = null;
            customProps = null;

            addProfile = false;
            mimeName = null;
            mimeSource = null;
            prodId = null;
            nickname = null;
            sortString = null;
            classification = null;
            categories = null;
        }
Beispiel #8
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();
        }