Ejemplo n.º 1
0
 public void WriteXml(StringBuilder sb, int indent)
 {
     if (Entries?.Data != null)
     {
         foreach (var e in Entries.Data)
         {
             YwrXml.OpenTag(sb, indent, "Item");
             e.WriteXml(sb, indent + 1);
             YwrXml.CloseTag(sb, indent, "Item");
         }
     }
 }
Ejemplo n.º 2
0
 public static void WriteXmlNode(WaypointRecordList l, StringBuilder sb, int indent, string name = "WaypointRecordList")
 {
     if (l == null)
     {
         return;
     }
     if ((l.Entries?.Data == null) || (l.Entries.Data.Count == 0))
     {
         YwrXml.SelfClosingTag(sb, indent, name);
     }
     else
     {
         YwrXml.OpenTag(sb, indent, name);
         l.WriteXml(sb, indent + 1);
         YwrXml.CloseTag(sb, indent, name);
     }
 }