public MainWindow() { InitializeComponent(); _gridConfiguraitonRepository = new GridConfiguraitonRepository(); _temperatures = new ValueRepository <TemperatureValue>(MainWindow_CollectionChanged); _temperatureChartManager = new TemperatureChartManager(_temperatures); _pressures = new ValueRepository <PressureValue>(MainWindow_CollectionChanged); _pressureChartManager = new PressureChartManager(_pressures); _vacuums = new ValueRepository <VacuumValue>(MainWindow_CollectionChanged); _vacuumChartManager = new VacuumChartManager(_vacuums); _dataGridManager = new DataGridManager(_gridConfiguraitonRepository, _pressures, _temperatures, _vacuums); _controlManager = new ControlManager(_gridConfiguraitonRepository); _gridManager = new GridManager(_dataGridManager, _controlManager); _fileControl = new FileControl(_pressures, _temperatures, _vacuums); _pdfControl = new PDFControl(_pressures, _temperatures, _vacuums, (PressureChartManager)_pressureChartManager, (TemperatureChartManager)_temperatureChartManager, (VacuumChartManager)_vacuumChartManager); gridValues.Children[2].Visibility = Visibility.Hidden; TotalTIme.Text = "Tempo total: " + _temperatures.getTotalTime().ToString(); UpdateGrid(); MainWindow_CollectionChanged(); }
public GridManager(IDataGridManager dataGridManager, IControlManager controlManager) { _dataGridManager = dataGridManager; _controlManager = controlManager; }