public OrderRecord(int type, String MarketName, MarketDatabase.Order order) : base(0x1)
 {
     m_type          = type;
     m_market        = MarketName;
     Movable         = false;
     m_uniqueID      = order.uniqueID;
     m_itemType      = order.itemType;
     m_amountStart   = order.amount;
     m_amountCurrent = m_amountStart;
     m_unitPrice     = order.unitPrice;
 }
        public static void ChangeAmountUserOrder(MarketDatabase.Order order, String market)
        {
            MarketUserContainer authorBox  = MarketDatabase.GetAccountBox(order.author as PlayerMobile, market);
            List <OrderRecord>  UserOrders = authorBox.UserOrders;

            for (int i = 0; i < UserOrders.Count; ++i)
            {
                if (UserOrders[i].m_uniqueID == order.uniqueID && UserOrders[i].m_market == market)
                {
                    UserOrders[i].m_amountCurrent = order.amount;
                    return;
                }
            }
        }
        public static void AddUserOrder(MarketDatabase.Order order, String market)
        {
            MarketUserContainer authorBox = MarketDatabase.GetAccountBox(order.author as PlayerMobile, market);

            authorBox.UserOrders.Add(new OrderRecord((order is MarketDatabase.SellOrder) ? 1 : 2, market, order));
        }