Ejemplo n.º 1
0
        public void WriteXml(XmlWriter w)
        {
            w.WriteElementString("SimilarityThreshold", SimilarityThreshold.ToString(CultureInfo.InvariantCulture));
            w.WriteElementString("TemplateUpdateThreshold", TemplateUpdateThreshold.ToString(CultureInfo.InvariantCulture));

            w.WriteStartElement("SearchWindow");
            w.WriteAttributeString("unit", SearchWindowUnit.ToString());
            w.WriteString(XmlHelper.WriteSize(SearchWindow));
            w.WriteEndElement();

            w.WriteStartElement("BlockWindow");
            w.WriteAttributeString("unit", BlockWindowUnit.ToString());
            w.WriteString(XmlHelper.WriteSize(BlockWindow));
            w.WriteEndElement();

            w.WriteElementString("RefinementNeighborhood", RefinementNeighborhood.ToString(CultureInfo.InvariantCulture));

            w.WriteElementString("ResetOnMove", XmlHelper.WriteBoolean(ResetOnMove));
        }