} // end noDataForGraph private List <LogStockDO> LoadLogs(List <LogStockDO> justSixteens, string currSP, List <StratumDO> sList) { List <LogStockDO> returnLogs = new List <LogStockDO>(); List <LogStockDO> justDIBs = bslyr.getLogDIBs(); foreach (LogStockDO jd in justDIBs) { // find all logs for DIB class List <LogStockDO> justLogs = justSixteens.FindAll( delegate(LogStockDO l) { return(l.DIBClass == jd.DIBClass); }); // expand and sum double calcValue = 0; foreach (LogStockDO jl in justLogs) { // find acres int nthRow = sList.FindIndex( delegate(StratumDO s) { return(s.Code == jl.Tree.Stratum.Code); }); double currAC = Utilities.ReturnCorrectAcres(jl.Tree.Stratum.Code, bslyr, (long)sList[nthRow].Stratum_CN); calcValue += (float)jl.Tree.ExpansionFactor * currAC; } // end foreach loop // load DIB class into report list if (calcValue > 0) { LogStockDO ls = new LogStockDO(); ls.DIBClass = jd.DIBClass; // since Tree is not defined in this list, must put calculated value into // a log stock valied field such as net cubic. ls.NetCubicFoot = (float)calcValue; returnLogs.Add(ls); } // endif } // end foreach loop return(returnLogs); } // end LoadLogs