private FvSolution GetSolution(string name, ParseTreeNode entry) { var p = new FvSolution(); p.Name = name; foreach (var x in entry.ChildNodes) { var y = x.ChildNodes[0]; switch (y.GetEntryIdentifier()) { case "nCorrectors": p.nCorrectors = y.GetBasicValInt(); break; case "nNonOrthogonalCorrectors": p.nNonOrthogonalCorrectors = y.GetBasicValInt(); break; case "pRefCell": p.pRefCell = y.GetBasicValDecimal(); break; case "pRefValue": p.pRefValue = y.GetBasicValDecimal(); break; } } return(p); }
private FvSolution GetSolution(string name, ParseTreeNode entry) { var p = new FvSolution(); p.Name = name; foreach (var x in entry.ChildNodes) { var y = x.ChildNodes[0]; switch (y.GetEntryIdentifier()) { case "nCorrectors": p.nCorrectors = y.GetBasicValInt(); break; case "nNonOrthogonalCorrectors": p.nNonOrthogonalCorrectors = y.GetBasicValInt(); break; case "pRefCell": p.pRefCell = y.GetBasicValDecimal(); break; case "pRefValue": p.pRefValue = y.GetBasicValDecimal(); break; } } return p; }