Пример #1
0
        public ProductCategoryEdit()
        {
            InitializeComponent();
            Container container = Container.Instance;

            this.manager = container.Get <Managers.ProductCategory>("manager.productCategory");
        }
Пример #2
0
        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();
        }