Ejemplo n.º 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);
            }
        }
Ejemplo n.º 2
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;
 }
Ejemplo n.º 3
0
 public DocumentService(CashierArmContext context) : base(context)
 {
     _documentOperationService = new DocumentOperationService(context);
     _productOperationService  = new ProductOperationService(context);
 }