示例#1
0
        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();
        }
示例#2
0
 public ItemControl(IDbContextScopeFactory dbContextScopeFactory, IItemRepository itemRepository, IImportControl importControl, IFileControl fileControl, IItemCategoryControl itemCategoryControl, IPropertyControl propertyControl)
 {
     _dbContextScopeFactory = dbContextScopeFactory ?? throw new ArgumentNullException("item control broke");
     _ItemRepository        = itemRepository ?? throw new ArgumentNullException("item control broke");
     _FileControl           = fileControl ?? throw new ArgumentNullException("item control broke");
     _ImportControl         = importControl ?? throw new ArgumentNullException("item control broke");
     _ItemCategoryControl   = itemCategoryControl ?? throw new ArgumentNullException("item control broke");
     _IPropertyControl      = propertyControl ?? throw new ArgumentNullException("item control broke");
 }
 public TaxManagementClass(IFileControl _fileControl, IDBControl _dbControl)
 {
     dbControl   = _dbControl;
     fileControl = _fileControl;
 }