void PrepareCalibList() { CalibDataList.Clear(); CalibDataList.am = AnalysisMethod; AnalysisMethods ams = Integ.GetMethodSelections(DetectorId, Material); INCCAnalysisParams.INCCMethodDescriptor imd = ams.GetMethodParameters(AnalysisMethod); INCCAnalysisParams.CurveEquationVals cev = null; double[] doubles = null; double[] decl_mass = null; GetCalCurve(imd, ref cev, ref doubles, ref decl_mass); for (int i = 0; i < doubles.Length; i++) { CalibData p = new CalibData(); p.CalPtsMass = decl_mass[i]; p.CalPtsDoubles = doubles[i]; p.number = i + 1; CalibDataList.Add(p); } CalibDataList.CalcLowerUpper(); CalibDataList.CalculateMassBasis(cev); ApplyMethodCurve(CalibDataList, cev); }