public void ShowResults() { object line = null; if (method != null) { line = chart.AddLine(method.SetAdditionallyNameForSeriesA()); } //read and visualize adding by 1 value for (int i = 1; i < dataImport.GetCount(); i++) { if (Output(UseMethod(Decline(Load(i)))) == false) { break; } //additionally series if (method != null) { chart.AddPointOnLine(OtherCalculationsA(), line); } } }