コード例 #1
0
ファイル: ProductEdit.xaml.cs プロジェクト: zingon/CSharpShop
        public ProductEdit()
        {
            InitializeComponent();
            Container container = Container.Instance;

            this.manager           = container.Get <Managers.Product>("manager.product");
            categories.ItemsSource = container.Get <Managers.ProductCategory>("manager.productCategory").getAll();
        }
コード例 #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();
        }
コード例 #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();
        }