protected void processDataSimpleSession(ArrayList arrayFromSql, bool makeAVGSD, int dataColumns)
{
this.makeAVGSD = makeAVGSD;
statPrintedData = new ArrayList();
string [] rowFromSql = new string [dataColumns +1];
int i;
//removes persons in personsWithData
personsWithData = new ArrayList();
//process all SQL results line x line
for (i=0; i < arrayFromSql.Count ; i ++) {
rowFromSql = arrayFromSql[i].ToString().Split(new char[] {':'});
for (int j=1; j <= dataColumns ; j++) {
rowFromSql[j] = Util.TrimDecimals(rowFromSql[j], pDN);
}
printData( rowFromSql );
//add people who are in this stat into personsWithData
//for being selected on comboCheckboxes
personsWithData = Util.AddToArrayListIfNotExist(
personsWithData, fetchNameOnStatsData(rowFromSql[0]));
}
//only show the row if sqlite returned values
if(i >0)
{
if(makeAVGSD)
// don't do it here because we can come from graph and then there's no treeview
CreateOrUpdateAVGAndSD();
} else {
//if we cannot access the treeview, also don't allow to graph or report
LogB.Information("no rows Clicking in stats/main.cs simple session");
fakeButtonNoRowsSelected.Click();
}
}