/// <summary> /// This method calls summary calculator to calculate advanced metrics and presents them in text area /// </summary> public void Calculate_Advanced() { SummaryCalculator sv = new SummaryCalculator(heart, speed, speed_mile, cadence, altitude, power, powerbalance, timee); string FTP = sv.CalculateFTP(); string Np = sv.CalculateNP(); string If = sv.CalculateIF(); string Tss = sv.CalculateTSS(); String pb = sv.CalculatePB(); List <String> adv = new List <string> { FTP, Np, If, Tss, pb }; foreach (String val in adv) { txt_advancedMetrics.Text = txt_advancedMetrics.Text + val + Environment.NewLine; txt_advanced_Metrics1.Text = txt_advanced_Metrics1.Text + val + Environment.NewLine; } }