Пример #1
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            GenericWindow windowAdd = new GenericWindow();

            windowAdd.Content = createProductPage(null);
            windowAdd.Owner   = (this.Tag as MainWindow);
            windowAdd.ShowDialog();
            init();
        }
Пример #2
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            GenericWindow windowAdd     = new GenericWindow();
            Inventory     inventoryPage = new Inventory(inventories);

            windowAdd.Content = inventoryPage;
            windowAdd.Owner   = (this.Tag as MainWindow);
            windowAdd.ShowDialog();
            loadData();
        }
Пример #3
0
        private void EditProductClicked(object sender, RoutedEventArgs e)
        {
            ProductEntity cellContent = (ProductEntity)dataGrid.SelectedItem;
            //MessageBox.Show(cellContent.Product.Name);

            GenericWindow windowInventoryList = new GenericWindow();

            windowInventoryList.Content = createProductPage(cellContent);
            windowInventoryList.ShowDialog();
            init();
        }
Пример #4
0
        private void SellPriceClicked(object sender, MouseButtonEventArgs e)
        {
            ProductStockEntity cellContent = (ProductStockEntity)dataGrid.SelectedItem;

            GenericWindow windowSellPriceHistory = new GenericWindow();
            SellPriceHistory sellPriceHistoryPage = new SellPriceHistory(cellContent.Product);
            sellPriceHistoryPage.SetParent(commonPage);
            sellPriceHistoryPage.setAvgBuyPrice(cellContent.BuyPrice);

            windowSellPriceHistory.Content = sellPriceHistoryPage;
            windowSellPriceHistory.ShowDialog();
        }
Пример #5
0
        private void ProductNameClicked(object sender, MouseButtonEventArgs e)
        {
            ProductStockEntity cellContent = (ProductStockEntity)dataGrid.SelectedItem;
            //MessageBox.Show(cellContent.Product.Name);

            GenericWindow windowInventoryList = new GenericWindow();
            ProductInventoryList inventoryListPage = new ProductInventoryList(cellContent.Product);
            inventoryListPage.SetParent(commonPage);

            windowInventoryList.Content = inventoryListPage;
            windowInventoryList.ShowDialog();
        }
Пример #6
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            GenericWindow        windowAdd     = new GenericWindow();
            SellPriceMaintenance sellPricePage = new SellPriceMaintenance(product);

            sellPricePage.SetParent(commonPage);
            sellPricePage.setAvgBuyPrice(avgBuyPrice);

            windowAdd.Content = sellPricePage;
            windowAdd.Owner   = (this.Tag as MainWindow);
            windowAdd.ShowDialog();
            init();
        }
Пример #7
0
        private void EditProductClicked(object sender, RoutedEventArgs e)
        {
            InventoryItemEntity cellContent = (InventoryItemEntity)dataGrid.SelectedItem;
            //MessageBox.Show(cellContent.Product.Name);

            GenericWindow        windowInventoryList      = new GenericWindow();
            InventoryMaintenance inventoryMaintenancePage = new InventoryMaintenance(cellContent);

            inventoryMaintenancePage.SetParent(commonPage);

            windowInventoryList.Content = inventoryMaintenancePage;
            windowInventoryList.ShowDialog();
            init();
        }