Ejemplo n.º 1
0
        public ProductEdit()
        {
            InitializeComponent();
            Container container = Container.Instance;

            this.manager           = container.Get <Managers.Product>("manager.product");
            categories.ItemsSource = container.Get <Managers.ProductCategory>("manager.productCategory").getAll();
        }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
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();
        }