public EditOrderWorkFlow(OrderManager orderManager, TaxRateManager taxRateManager, ProductManager productManager, FetchOrdersMatchingDate fetchOrdersMatchingDate)
 {
     _orderManager = orderManager;
     _taxRateManager = taxRateManager;
     _productManager = productManager;
     _fetchOrdersMatchingDate = fetchOrdersMatchingDate;
 }
Esempio n. 2
0
        public Form1()
        {
            InitializeComponent();
            _kernel = new StandardKernel(new FlooringMasteryModule());
            _myOrderManger = _kernel.Get<OrderManager>();
            _myProductManager = _kernel.Get<ProductManager>();
            _myTaxRateManager = _kernel.Get<TaxRateManager>();
            cmbProdType.DataSource = _myProductManager.GetAllProducts().Select(x => x.ProductType).ToList();
            cmbState.DataSource = _myTaxRateManager.GetAllTaxRates().Select(x => x.State).ToList();
            cmbTaxRate.DataSource = _myTaxRateManager.GetAllTaxRates().Select(x => x.TaxPercent).ToList();


        }
 public AddOrderWorkFlow(TaxRateManager taxRateManager, OrderManager orderManager, ProductManager productManager)
 {
     _taxRateManager = taxRateManager;
     _orderManager = orderManager;
     _productManager = productManager;
 }