Exemplo n.º 1
0
 /// <summary>
 /// Save the object's XML to the XmlWriter.
 /// </summary>
 /// <param name="objWriter">XmlTextWriter to write with.</param>
 public void Save(XmlTextWriter objWriter)
 {
     objWriter.WriteStartElement("undo");
     objWriter.WriteElementString("karmatype", KarmaType.ToString());
     objWriter.WriteElementString("nuyentype", NuyenType.ToString());
     objWriter.WriteElementString("objectid", _strObjectId);
     objWriter.WriteElementString("qty", _decQty.ToString(GlobalOptions.InvariantCultureInfo));
     objWriter.WriteElementString("extra", _strExtra);
     objWriter.WriteEndElement();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Save the object's XML to the XmlWriter.
 /// </summary>
 /// <param name="objWriter">XmlTextWriter to write with.</param>
 public void Save(XmlWriter objWriter)
 {
     if (objWriter == null)
     {
         return;
     }
     objWriter.WriteStartElement("undo");
     objWriter.WriteElementString("karmatype", KarmaType.ToString());
     objWriter.WriteElementString("nuyentype", NuyenType.ToString());
     objWriter.WriteElementString("objectid", _strObjectId);
     objWriter.WriteElementString("qty", _decQty.ToString(GlobalSettings.InvariantCultureInfo));
     objWriter.WriteElementString("extra", _strExtra);
     objWriter.WriteEndElement();
 }