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 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 DocumentService(CashierArmContext context) : base(context) { _documentOperationService = new DocumentOperationService(context); _productOperationService = new ProductOperationService(context); }