public void adjustThePartialTables(string statementXML)
{
XDocument doc = XDocument.Parse(statementXML);
var q = from x in doc.Elements().Descendants("Computer").Descendants() select x;
List<string> statements = new List<string>();
string IPPort="";
foreach (var item in q)
{
if (item.Name.ToString() == "IPPort")
{
if (IPPort == "")
IPPort = item.Value.ToString();
else
{
IPPort_toCode.Add(IPPort, statements);
statements.Clear();
IPPort = item.Value.ToString();
}
}
if (item.Name.ToString() == "Statement")
statements.Add(item.Value.ToString());
}
q = from x in doc.Elements().Descendants("Computer").Descendants("IPPort") select x;
string[] temp = { "", "0" };//o not calculated 1 calculated
foreach (var item in q)
{
partialResults.Add(item.Value.ToString(), temp);
}
//this computers IPPort?
string IPprt = "";
//function of core team to calculate this portion
//function(IPprt,List<string>(IPPort_toCode[IPprt]));
}
private string PortionsIPXML(int LinePerCPU, string[] statement, List<string> calculationComputers, Hashtable IPtoCPU)