public string GetData(string verifyCode) { ResultCalculation rc = new ResultCalculation(verifyCode); string result = rc.getResult(); if (result.Length > 0) { return(result); } else { return("0"); } }
//Show Results #region Show Results public void show_Results() { richTxtResults.Text = ""; ResultCalculationList resList = new ResultCalculationList(); if (resList.ResultList != null) { resList.ResultList.Clear(); } richTxtResults.Text = sysData.ToString(); double maxRingForce = 0; string assessment = ""; foreach (SoilMaterial layer in soilList) { ResultCalculation res = new ResultCalculation(sysData, columnMaterial, geoTex, layer); resList.totSettlement += res.Ss; resList.rbd = res.Rbd; resList.ResultList.Add(res); richTxtResults.Text += resList.ToString(); if (maxRingForce < res.Ringforce) { maxRingForce = Math.Round(res.Ringforce, 2); } if (maxRingForce <= res.Rbd) { assessment = "Proof of geo textile fulfilled"; } else { assessment = "Proof of geo textile not fulfilled"; } } richTxtResults.Text += "\nTotal settlement " + resList.totSettlement + " cm" + "\nGeo textile resistance: " + resList.rbd + " kN/m" + "\nMax. ringforce: " + maxRingForce + " kN/m" + "\n" + assessment; formatRichTextBox(); }