Пример #1
0
        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));
        }
Пример #2
0
        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);
        }