Exemplo n.º 1
0
 public static XmlDocument ToXml(itemCronos[] items)
 {
     XmlDocument xmlDoc = new XmlDocument();
     string doc = "<CronosHistory>";
     for (int i = 0; i < items.Length; i++)
         doc += items[i].ToNodoXml().OuterXml;
     doc += "</CronosHistory>";
     xmlDoc.InnerXml = doc;
     xmlDoc.Normalize();
     return xmlDoc;
 }
Exemplo n.º 2
0
 public static itemCronos[] LoadXml(XmlDocument xmlItems)
 {
     itemCronos[] items = new itemCronos[xmlItems.ChildNodes[1].ChildNodes.Count];
     for (int i = 0; i < items.Length; i++)
         items[i] = new itemCronos(xmlItems.ChildNodes[1].ChildNodes[i]);
     return items;
 }