Ejemplo n.º 1
0
        public void MakeCompactPrices()
        {
            this.Rows = new List <AuctionHousePriceRow>();
            var items = this.AuctionHouse.GetItems().FindAll(x => x.ItemID == this.ItemID);
            int rowID = 1;

            foreach (var item in items)
            {
                var stock = this.GetSameStockOf(item.Stats, item.SellPrice);
                if (stock != null)
                {
                    stock.Add(item.Quantity, item);
                }
                else
                {
                    stock = new AuctionHousePriceRow()
                    {
                        RowID = rowID
                    };
                    stock.Add(item.Quantity, item);
                    this.Rows.Add(stock);
                    rowID++;
                }
            }
        }
Ejemplo n.º 2
0
 public void MakeCompactPrices()
 {
     this.Rows = new List<AuctionHousePriceRow>();
     var items = this.AuctionHouse.GetItems().FindAll(x => x.ItemID == this.ItemID);
     int rowID = 1;
     foreach (var item in items)
     {
         var stock = this.GetSameStockOf(item.Stats, item.SellPrice);
         if (stock != null)
         {
             stock.Add(item.Quantity, item);
         }
         else
         {
             stock = new AuctionHousePriceRow() { RowID = rowID };
             stock.Add(item.Quantity, item);
             this.Rows.Add(stock);
             rowID++;
         }
     }
 }