Exemple #1
0
        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);
            }
        }
Exemple #2
0
 public ProductService(CashierArmContext context) : base(context)
 {
     _storageRemainderService = new StorageRemainderService(context);
     _unitService             = new UnitService(context);
     _storageService          = new StorageService(context);
     _ruleSaleService         = new RuleSaleService(context);
 }
Exemple #3
0
 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);
 }