From c205c3d6ed1893c93443355c2b517dd9cf099221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20Pierzy=C5=84ski?= Date: Wed, 16 Jan 2019 23:24:11 +0100 Subject: [PATCH] Task: 51 --- Magazyn_Client/Magazyn/Views/FruitView.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)