/// <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(); }
/// <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(); }