Exemplo n.º 1
0
        private void WriteComments(XmlWriter writer, Note note)
        {
            writer.WriteStartElement(XmlPrefix);
            writer.WriteAttributeString("A", GenerateId());
            writer.WriteAttributeString("B", note.Description);
            writer.WriteAttributeString("C", "2");

            WriteListValues(writer, note.Value);

            writer.WriteEndElement();
        }
Exemplo n.º 2
0
        private void LoadCommentAllocations(XmlNode inputNode)
        {
            Note note = null;

            var commentId = inputNode.GetXmlNodeValue("@A");
            if (!string.IsNullOrEmpty(commentId))
                note = LoadCodedComment(inputNode, commentId);
            else
                note = new Note { Description = inputNode.GetXmlNodeValue("@C") };

            if (note == null)
                return;

            var noteTimeStamp = AllocationTimestampLoader.Load(inputNode);
            note.TimeStamps.Add(noteTimeStamp);
            if (noteTimeStamp != null && noteTimeStamp.Location1 != null)
                note.SpatialContext = noteTimeStamp.Location1.Position;

            _allocations.Add(note);
        }