public ManagerMenu(ICustomerBL customerBL, IProductBL productBL, ILocationBL locationBL, IInventoryBL inventoryBL, IOrderBL orderBL, ICartBL cartBL, ICartProductsBL cartProductsBL, IOrderItemsBL orderItemsBL) { _customerBL = customerBL; _productBL = productBL; _locationBL = locationBL; _orderBL = orderBL; _inventoryBL = inventoryBL; _cartBL = cartBL; _cartProductsBL = cartProductsBL; _orderItemsBL = orderItemsBL; //generate menus necessary for managermenu access customerSearch = new CustSearch(_customerBL, _orderBL); productSearch = new ProductSearch(_productBL, _cartProductsBL, _inventoryBL); inventorySearch = new InventorySearch(_inventoryBL); orderSearch = new OrderSearch(_orderBL, _orderItemsBL, _productBL); }
public ProductSearch(IProductBL productBL, ICartProductsBL cartProductsBL, IInventoryBL inventoryBL) { _productBL = productBL; _cartProductsBL = cartProductsBL; _inventoryBL = inventoryBL; }
public MainMenu(ICustomerBL customerBL, IProductBL productBL, ILocationBL locationBL, IInventoryBL inventoryBL, IOrderBL orderBL, ICartBL cartBL, ICartProductsBL cartProductsBL, IOrderItemsBL orderItemsBL) { //create required menu views in constructor, pass in required BL/DL connections managerMenu = new ManagerMenu(customerBL, productBL, locationBL, inventoryBL, orderBL, cartBL, cartProductsBL, orderItemsBL); }