public void Init(DeviceController deviceController)
        {
            _deviceController          = deviceController;
            _tempDevices               = _deviceController.Devices.ToList();
            DeviceDataGrid.ItemsSource = _tempDevices;

            DeviceTypeListBox.ItemsSource       = _tempDevices.Select(x => x.Name).ToList();
            DeviceTypeListBox.SelectionChanged -= DeviceTypeListBox_SelectionChanged;
            DeviceTypeListBox.SelectedIndex     = _selectedDevice;
            DeviceTypeListBox.SelectionChanged += DeviceTypeListBox_SelectionChanged;

            DeviceDayOfWeekListBox.ItemsSource   = Constants.DayOfWeek;
            DeviceDayOfWeekListBox.SelectedIndex = _selectedDeviceDayOfWeek;

            RealGraphEnergyLoadView.Init(_deviceController);
            OptimizationView.Init(_deviceController);
        }
 public void SaveCharts(List <string> paths, List <string> opt2Paths, List <string> opt3Paths)
 {
     RealGraphEnergyLoadView.SaveCharts(paths);
     OptimizationView.SaveCharts(opt2Paths, opt3Paths);
 }