public MainWindow( IProductService productService, IStorageService storageService, IUnitService unitService, IDocumentTypeService documentTypeService, IProductOperationService productOperationService, IRuleSaleService ruleSaleService, IOperationTypeService operationTypeService, IDocumentService documentService, IStorageRemainderService storageRemainderService, IDocumentOperationService documentOperationService) { _productService = productService; _storageService = storageService; _unitService = unitService; _documentTypeService = documentTypeService; _productOperationService = productOperationService; _ruleSaleService = ruleSaleService; _operationTypeService = operationTypeService; _documentService = documentService; _storageRemainderService = storageRemainderService; _documentOperationService = documentOperationService; try { InitializeData(); InitializeComponent(); InitializedParams(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public ProductService(CashierArmContext context) : base(context) { _storageRemainderService = new StorageRemainderService(context); _unitService = new UnitService(context); _storageService = new StorageService(context); _ruleSaleService = new RuleSaleService(context); }
public InitializeData( IProductService productService, IStorageService storageService, IUnitService unitService, IDocumentTypeService documentTypeService, IProductOperationService productOperationService, IRuleSaleService ruleSaleService, IOperationTypeService operationTypeService, IDocumentService documentService, IStorageRemainderService storageRemainderService, IDocumentOperationService documentOperationService) { _productService = productService; _storageService = storageService; _unitService = unitService; _documentTypeService = documentTypeService; _productOperationService = productOperationService; _ruleSaleService = ruleSaleService; _operationTypeService = operationTypeService; _documentService = documentService; _storageRemainderService = storageRemainderService; _documentOperationService = documentOperationService; }
public ProductOperationService(CashierArmContext context) : base(context) { _storageRemainderService = new StorageRemainderService(context); }