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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }