public HardwareAppService(IHardwareRepository hardwareRepository, DataContext dataContext, IItemBaseOnHardwareRepository itemBaseOnHardwareRepository, IProjectRepository projectRepository)
 {
     _hardwareRepository           = hardwareRepository;
     _dataContext                  = dataContext;
     _itemBaseOnHardwareRepository = itemBaseOnHardwareRepository;
     _projectRepository            = projectRepository;
 }
 public void InitialiseRepository(ISiteRepository sites, ILinkRepository links, IHardwareRepository hardware)
 {
     data = new DataConfigurationViewModel();
       data.LoadSiteComboBoxes += new LoadSiteComboBoxesEvent(data_LoadSiteComboBoxes);
       data.Initialise(sites, links, hardware);
       DataContext = data;
 }
Example #3
0
 public CheckInQueryCommand(
     ChunkedProducerConsumer <IInstruction> instructionProducer,
     IHardwareRepository hardwareRepository)
     : base(instructionProducer)
 {
     this.are = new AutoResetEvent(false);
     this.hardwareRepository = hardwareRepository;
 }
Example #4
0
 public CheckInQueryCommand(
     ChunkedProducerConsumer<IInstruction> instructionProducer,
     IHardwareRepository hardwareRepository)
     : base(instructionProducer)
 {
     this.are = new AutoResetEvent(false);
     this.hardwareRepository = hardwareRepository;
 }
        //readonly IProductSupplierRepository repositoryProductSupplier;
        //readonly IPurchaseRepository repositoryPurchase;
        //readonly IHardwareRepository repositoryHardware;
        //readonly ISoftwareRepository repositorySoftware;

        public SupplierService(ISupplierRepository _repository, IProductSupplierRepository _repositoryProductSupplier,
                               IPurchaseRepository _repositoryPurchase, IHardwareRepository _repositoryHardware, ISoftwareRepository _repositorySoftware)
        {
            repository = _repository;
            repositoryProductSupplier = _repositoryProductSupplier;
            repositoryPurchase        = _repositoryPurchase;
            repositoryHardware        = _repositoryHardware;
            repositorySoftware        = _repositorySoftware;
        }
 public StatusService(IStatusRepository _repository, IAssetRepository _repositoryAsset,
                      IHardwareRepository _repositoryHardware, ILicenseRepository _repositoryLicense,
                      IPurchaseItemRepository _repositoryPurchaseItem, ISoftwareRepository _repositorySoftware)
 {
     repository             = _repository;
     repositoryAsset        = _repositoryAsset;
     repositoryHardware     = _repositoryHardware;
     repositoryLicense      = _repositoryLicense;
     repositoryPurchaseItem = _repositoryPurchaseItem;
     repositorySoftware     = _repositorySoftware;
 }
Example #7
0
        public BasicStatsViewModel(ICustomerRepository customerRepository, IHardwareRepository hardwareRepository,
                                   IOrderRepository orderRepository, IEventAggregator eventAggregator, IMessageDialogService messageDialogService)
            : base(eventAggregator, messageDialogService)
        {
            Initialize();

            _customerRepository = customerRepository;
            _hardwareRepository = hardwareRepository;
            _orderRepository    = orderRepository;

            Title = "Ogólne";
        }
Example #8
0
        public HardwareViewModel(IHardwareRepository hardwareRepository, IHardwareTypeRepository typeRepository, ICustomItemRepository customItemRepository,
                                 IRegionManager regionManager, IEventAggregator eventAggregator, IMessageDialogService messageDialogService, IHwCustomItemRepository hwCustomItemRepository) : base(eventAggregator, messageDialogService)
        {
            _regionManager          = regionManager;
            _hwCustomItemRepository = hwCustomItemRepository;
            _hardwareRepository     = hardwareRepository;
            _typeRepository         = typeRepository;
            _customItemRepository   = customItemRepository;

            HardwareCustomItems    = new ObservableCollection <HwCustomItem>();
            HardwareTypes          = new ObservableCollection <HardwareType>();
            DisplayableCustomItems = new ObservableCollection <DisblayableCustomItem>();
        }
 public MainWindow()
 {
     InitializeComponent();
       SqlCeConnection connection = new SqlCeConnection("Data Source=Panic.sdf");
       // Upgrade the database if required
       SqlCeEngine engine = new SqlCeEngine(connection.ConnectionString);
       engine.Upgrade();
       siteRepository = new SiteSQL(connection);
       linkRepository = new LinkSQL(connection);
       hardwareRepository = new HardwareSQL(connection);
       graphVisualiser.InitialiseRepository(siteRepository, linkRepository);
       dataConfiguration.InitialiseRepository(siteRepository, linkRepository, hardwareRepository);
       graphVisualiser.Refresh();
 }
 public HardwareService(IHardwareRepository _repository, IProductTypeRepository _repositoryProductType,
                        IProductSupplierRepository _repositoryProductSupplier, IProductDetailRepository _repositoryProductDetail,
                        IPurchaseItemRepository _repositoryPurchaseItem, IStatusRepository _repositoryStatus,
                        IDetailRepository _repositoryDetail, IHostingEnvironment _hostingEnv)
 {
     repository                = _repository;
     repositoryProductType     = _repositoryProductType;
     repositoryProductSupplier = _repositoryProductSupplier;
     repositoryProductDetail   = _repositoryProductDetail;
     repositoryPurchaseItem    = _repositoryPurchaseItem;
     repositoryStatus          = _repositoryStatus;
     repositoryDetail          = _repositoryDetail;
     hostingEnv                = _hostingEnv;
 }
 public HardwareController(IHardwareRepository hardwareRepository)
 {
     HardwareRepository = hardwareRepository;
 }
Example #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HardwareService"/> class.
 /// </summary>
 /// <param name="repository">The repository<see cref="IHardwareRepository"/></param>
 public HardwareService(IHardwareRepository repository)
 {
     _repository = repository;
 }
Example #13
0
 public HardwaresController(IHardwareRepository repository)
 {
     _repository = repository;
 }
 public HardwareController(AssetContext context, IHardwareRepository hardwareRepository)
 {
     _context            = context;
     dbHardware          = new SQLHardwareRepository(_context);
     _hardwareRepository = hardwareRepository;
 }
 public HardwareController(IHardwareRepository hardwareRepository, ICategoryRepository categoryRepository)
 {
     _hardwareRepository = hardwareRepository;
     _categoryRepository = categoryRepository;
 }
 public void Initialise(ISiteRepository aSiteRepository, ILinkRepository aLinkRepository, IHardwareRepository aHardwareRepository)
 {
     // Create the Site Data Repository
       siteRepository = aSiteRepository;
       siteRepository.Populate();
       siteRepository.SitesChanged += new SitesChangedHandler(siteRepository_SitesChanged);
       BuildSiteInformation();
       // Create the Link Data Repository
       linkRepository = aLinkRepository;
       List<Link> links = linkRepository.Populate();
       Links = CollectionViewSource.GetDefaultView(links);
       // Create the Hardware Data Repository
       hardwareRepository = aHardwareRepository;
       List<Hardware> hardwares = hardwareRepository.Populate();
       Hardwares = CollectionViewSource.GetDefaultView(hardwares);
       NotifyPropertyChanged("Sites");
       NotifyPropertyChanged("Links");
       NotifyPropertyChanged("Hardwares");
 }
 public HardwareService(IHardwareRepository hardwareRepository, IMapper mapper)
 {
     _hardwareRepository = hardwareRepository;
     _mapper             = mapper;
 }
 public ShoppingCartController(IHardwareRepository hardwareRepository, ShoppingCart shoppingCart)
 {
     _hardwareRepository = hardwareRepository;
     _shoppingCart       = shoppingCart;
 }
 public HomeController(IBookRepository bookRepository, IHardwareRepository hardwareRepository, ISoftwareRepository softwareRepository)
 {
     _bookRepository     = bookRepository;
     _hardwareRepository = hardwareRepository;
     _softwareRepository = softwareRepository;
 }