public AdminWindow() { InitializeComponent(); Container container = Container.Instance; this.productManager = container.Get <Managers.Product>("manager.product"); this.orderManager = container.Get <Managers.Order>("manager.order"); productsDataGrid.ItemsSource = productManager.getAll(); orderDataGrid.ItemsSource = orderManager.getAll(); }
public MainWindow() { InitializeComponent(); Container container = Container.Instance; this.productManager = container.Get <Managers.Product>("manager.product"); this.cartManager = container.Get <Managers.Cart>("manager.cart"); this.productCategoryManager = container.Get <Managers.ProductCategory>("manager.productCategory"); this.strategyManager = container.Get <Managers.StrategyManager>("manager.strategy"); this.orderManager = container.Get <Managers.Order>("manager.order"); CategoriesDatagrid.ItemsSource = productCategoryManager.getAll(); CartDatagrid.ItemsSource = cartManager.GetCartItems(); CustomersBox.ItemsSource = orderManager.GetAllCustomers(); }