public override void WriteXml(XmlWriter writer)
 {
     writer.WriteAttributeString("ItemID", ItemID);
     writer.WriteAttributeString("CheckNewMail", CheckNewMail.ToString());
     writer.WriteAttributeString("GetMailType", GetMailType.ToString());
     writer.WriteAttributeString("AutoFindMailBox", AutoFindMailBox.ToString());
     writer.WriteAttributeString("X", loc.X.ToString());
     writer.WriteAttributeString("Y", loc.Y.ToString());
     writer.WriteAttributeString("Z", loc.Z.ToString());
     writer.WriteAttributeString("MinFreeBagSlots", MinFreeBagSlots.ToString());
 }
示例#2
0
        public override void WriteXml(XmlWriter writer)
        {
            writer.WriteAttributeString("Entry", ItemID.ToString());
            writer.WriteAttributeString("AutoFindMailBox", AutoFindMailBox.ToString());

            writer.WriteAttributeString("UseCategory", UseCategory.ToString());
            writer.WriteAttributeString("Category", Category.ToString());
            writer.WriteAttributeString("SubCategoryType", SubCategory.GetType().Name);
            writer.WriteAttributeString("SubCategory", SubCategory.ToString());

            writer.WriteAttributeString("X", loc.X.ToString());
            writer.WriteAttributeString("Y", loc.Y.ToString());
            writer.WriteAttributeString("Z", loc.Z.ToString());
        }