public static string SaveReport(string filepath) { DataCenter dataCenter = FileCenter.OpenFile(filepath); Algorithm.PreProcess(ref dataCenter); Algorithm.ApproximateProcess(ref dataCenter); Algorithm.FinalProcess(ref dataCenter); return(GetReport(dataCenter)); }
public static void SaveChart(string inputpath, string outputpath) { DataCenter dataCenter = FileCenter.OpenFile(inputpath); Algorithm.PreProcess(ref dataCenter); Algorithm.ApproximateProcess(ref dataCenter); Algorithm.FinalProcess(ref dataCenter); Chart chart = new Chart(); Draw(dataCenter, ref chart); chart.SaveImage(outputpath, ChartImageFormat.Jpeg); }