public void SaveCharts(List <string> paths)
        {
            Chart chart = new Chart();

            chart.ChartAreas.Add(new ChartArea("Default"));
            chart.Legends.Add(new Legend("Legend1"));
            chart.Legends[0].Enabled = false;

            var weekElectricalLoads = _electricalLoadsForDevices[_electricalLoadsForDevices.Count - 1];

            for (int selectedDayOfWeek = 0; selectedDayOfWeek <= 7; selectedDayOfWeek++)
            {
                var dayElectricalLoads = weekElectricalLoads[selectedDayOfWeek];
                ElectricalLoadChart(chart, dayElectricalLoads, selectedDayOfWeek);
                ChartController.SaveImage(chart, paths[selectedDayOfWeek]);
            }

            var           electricalConsumptions = _deviceController.ElectricalConsumptions;
            List <double> consumptions           = electricalConsumptions[electricalConsumptions.Count - 1].ToList();

            consumptions.RemoveAt(consumptions.Count - 1);
            List <string> days = Constants.DayOfWeek.ToList();

            ElectricalConsumptionChart(chart, consumptions, days);
            ChartController.SaveImage(chart, paths[8]);
        }
예제 #2
0
        public void SaveCharts(List <string> paths)
        {
            Chart chart = new Chart();

            chart.ChartAreas.Add(new ChartArea("Default"));
            chart.Legends.Add(new Legend("Legend1"));
            chart.Legends[0].Enabled = false;
            SetHeatProductionCorrectionChart(chart);
            ChartController.SaveImage(chart, paths[0]);
            SetHeatPowerCorrectionChart(chart);
            ChartController.SaveImage(chart, paths[1]);
            ChartController.SaveImage(CostChart, paths[2]);
        }
예제 #3
0
        public void SaveCharts(List <string> paths)
        {
            Chart chart = new Chart();

            chart.ChartAreas.Add(new ChartArea("Default"));
            chart.Legends.Add(new Legend("Legend1"));
            TemperatureConditionChart(chart);
            ChartController.SaveImage(chart, paths[0]);

            DurationOfTemperatureModesChart(chart);
            ChartController.SaveImage(chart, paths[1]);

            WindsRoseChart(chart);
            ChartController.SaveImage(chart, paths[2]);

            DurationOfWindActivityModesChart(chart);
            ChartController.SaveImage(chart, paths[3]);

            IntesityOfSolarInsolationChart(chart);
            ChartController.SaveImage(chart, paths[4]);

            DurationOfSolarActivityModesChart(chart);
            ChartController.SaveImage(chart, paths[5]);
        }
예제 #4
0
 public void SaveCharts(List <string> paths)
 {
     ChartController.SaveImage(StoreChart, paths[0]);
     ChartController.SaveImage(CostChart, paths[1]);
 }
 public void SaveCharts(List <string> paths)
 {
     ChartController.SaveImage(WindGenChart, paths[0]);
     ChartController.SaveImage(WindChart, paths[1]);
 }
 public void SaveCharts(List <string> paths)
 {
     ChartController.SaveImage(CharacteristicChart, paths[0]);
     ChartController.SaveImage(HeatChart, paths[1]);
     ChartController.SaveImage(CostChart, paths[2]);
 }