Example #1
0
        /// <summary>
        /// Writes the content of this instance to a persistent storage area.
        /// </summary>
        /// <param name="editSerializer">The mechanism for storing content.</param>
        public override void WriteData(EditSerializer editSerializer)
        {
            base.WriteData(editSerializer);

            editSerializer.WriteFeatureRef <PointFeature>(DataField.From, m_From);
            editSerializer.WriteFeatureRef <PointFeature>(DataField.To, m_To);
            editSerializer.WriteString(DataField.EntryString, m_EntryString);
            editSerializer.WriteDistanceUnit(DataField.DefaultEntryUnit, m_DefaultEntryUnit);
            editSerializer.WriteEntity(DataField.PointType, EditingController.Current.Project.DefaultPointType);
            editSerializer.WriteEntity(DataField.LineType, EditingController.Current.Project.DefaultLineType);
            editSerializer.WriteIdMappings(DataField.Ids, this.Features);
        }
Example #2
0
        /// <summary>
        /// Writes the content of this instance to a persistent storage area.
        /// </summary>
        /// <param name="editSerializer">The mechanism for storing content.</param>
        public override void WriteData(EditSerializer editSerializer)
        {
            base.WriteData(editSerializer);

            editSerializer.WriteFeatureRef<PointFeature>(DataField.From, m_From);
            editSerializer.WriteFeatureRef<PointFeature>(DataField.To, m_To);
            editSerializer.WriteString(DataField.EntryString, m_EntryString);
            editSerializer.WriteDistanceUnit(DataField.DefaultEntryUnit, m_DefaultEntryUnit);
            editSerializer.WriteEntity(DataField.PointType, EditingController.Current.Project.DefaultPointType);
            editSerializer.WriteEntity(DataField.LineType, EditingController.Current.Project.DefaultLineType);
            editSerializer.WriteIdMappings(DataField.Ids, this.Features);
        }