diff --git a/Magazyn_Client/Magazyn/Views/FruitView.xaml.cs b/Magazyn_Client/Magazyn/Views/FruitView.xaml.cs index 6edc8fa..51ee28c 100644 --- a/Magazyn_Client/Magazyn/Views/FruitView.xaml.cs +++ b/Magazyn_Client/Magazyn/Views/FruitView.xaml.cs @@ -54,14 +54,14 @@ namespace Magazyn.Views { AmountWindow window = new AmountWindow(fruit, -1); window.SaveChangingAmountOfFruits += WindowSaveChangingAmountOfFruits; - window.Show(); + window.ShowDialog(); } private void addButton_Click(object sender, RoutedEventArgs e) { AmountWindow window = new AmountWindow(fruit, 1); window.SaveChangingAmountOfFruits += WindowSaveChangingAmountOfFruits; - window.Show(); + window.ShowDialog(); } private void WindowSaveChangingAmountOfFruits(int amountChanged)