private void updateCommodityList()
{
int Counter=0;
try
{
List<EDCommoditiesExt> retValue = new List<EDCommoditiesExt>();
EDCommoditiesExt currentCommodity;
foreach (DataGridViewRow Commodity in dgvWarnlevels.Rows)
{
if (Counter == 83)
Debug.Print(Counter.ToString());
Debug.Print(Counter.ToString());
currentCommodity = Commodities.Find(x => x.Id == int.Parse(Commodity.Cells["Id"].Value.ToString()));
currentCommodity.PriceWarningLevel_Demand_Sell_Low = int.Parse(Commodity.Cells[4].Value.ToString());
currentCommodity.PriceWarningLevel_Demand_Sell_High = int.Parse(Commodity.Cells[5].Value.ToString());
currentCommodity.PriceWarningLevel_Demand_Buy_Low = int.Parse(Commodity.Cells[6].Value.ToString());
currentCommodity.PriceWarningLevel_Demand_Buy_High = int.Parse(Commodity.Cells[7].Value.ToString());
currentCommodity.PriceWarningLevel_Supply_Sell_Low = int.Parse(Commodity.Cells[8].Value.ToString());
currentCommodity.PriceWarningLevel_Supply_Sell_High = int.Parse(Commodity.Cells[9].Value.ToString());
currentCommodity.PriceWarningLevel_Supply_Buy_Low = int.Parse(Commodity.Cells[10].Value.ToString());
currentCommodity.PriceWarningLevel_Supply_Buy_High = int.Parse(Commodity.Cells[11].Value.ToString());
Counter++;
}
}
catch (Exception ex)
{
Debug.Print("STOP : " + ex.Message) ;
}
}
}