/// <summary> /// Calls the add new product window /// </summary> private void AddNewProduct() { NewProduct np = new NewProduct(); np.Show(); np.Closed += (a, b) => { LoadProducts(); }; }
/// <summary> /// Opens the new Product window /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void New_Click(object sender, RoutedEventArgs e) { NewProduct np = new NewProduct(); np.Show(); np.Closed += (x, y) => { ProductTable.ItemsSource = null; LoadDataInWpfWindow(); ProductTable.Columns[0].IsReadOnly = true; ProductTable.Columns[2].Header = "Preis (€)"; ProductTable.Columns[3].Header = "Steuer (%)"; ProductTable.Columns[4].Header = "Menge"; ProductTable.Columns[5].Header = "Art der Menge"; ProductTable.Columns[6].Header = "Kat."; }; }
/// <summary> /// Calls the add new product window /// </summary> private void AddNewProduct() { NewProduct np = new NewProduct(); np.Show(); }