Пример #1
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;
        }
Пример #2
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);
        }