public override void WriteXml(XmlWriter writer)
 {
     writer.WriteAttributeString("ItemID", ItemID);
     writer.WriteAttributeString("AutoFindAh", AutoFindAh.ToString());
     writer.WriteAttributeString("UseCategory", UseCategory.ToString());
     writer.WriteAttributeString("Category", Category.ToString());
     writer.WriteAttributeString("SubCategoryType", SubCategory.GetType().Name);
     writer.WriteAttributeString("SubCategory", SubCategory.ToString());
     writer.WriteAttributeString("MinBuyout", MinBuyout.ToString());
     writer.WriteAttributeString("X", loc.X.ToString());
     writer.WriteAttributeString("Y", loc.Y.ToString());
     writer.WriteAttributeString("Z", loc.Z.ToString());
 }
 public override void WriteXml(XmlWriter writer)
 {
     writer.WriteAttributeString("ItemID", ItemID);
     writer.WriteAttributeString("MinBuyout", MinBuyout.ToString());
     writer.WriteAttributeString("MaxBuyout", MaxBuyout.ToString());
     writer.WriteAttributeString("RunTime", RunTime.ToString());
     writer.WriteAttributeString("Amount", Amount.ToString());
     writer.WriteAttributeString("StackSize", StackSize.ToString());
     writer.WriteAttributeString("AmountType", AmountType.ToString());
     writer.WriteAttributeString("AutoFindAh", AutoFindAh.ToString());
     writer.WriteAttributeString("BidPrecent", BidPrecent.ToString(CultureInfo.InvariantCulture));
     writer.WriteAttributeString("UndercutPrecent", UndercutPrecent.ToString(CultureInfo.InvariantCulture));
     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());
     writer.WriteAttributeString("PostIfBelowMinBuyout", PostIfBelowMinBuyout.ToString());
 }
 public override object Clone()
 {
     return(new SellItemOnAhAction
     {
         ItemID = ItemID,
         MinBuyout = new PropertyBag.GoldEditor(MinBuyout.ToString()),
         MaxBuyout = new PropertyBag.GoldEditor(MaxBuyout.ToString()),
         Amount = Amount,
         StackSize = StackSize,
         IgnoreStackSizeBelow = IgnoreStackSizeBelow,
         AmountType = AmountType,
         AutoFindAh = AutoFindAh,
         Location = Location,
         UndercutPrecent = UndercutPrecent,
         BidPrecent = BidPrecent,
         RunTime = RunTime,
         UseCategory = UseCategory,
         Category = Category,
         SubCategory = SubCategory,
         PostIfBelowMinBuyout = PostIfBelowMinBuyout,
     });
 }