1
0
forked from s442333/DINO_SCRUM
This commit is contained in:
Konrad Pierzyński 2019-01-16 23:24:11 +01:00
parent 566caf5554
commit c205c3d6ed

View File

@ -54,14 +54,14 @@ namespace Magazyn.Views
{ {
AmountWindow window = new AmountWindow(fruit, -1); AmountWindow window = new AmountWindow(fruit, -1);
window.SaveChangingAmountOfFruits += WindowSaveChangingAmountOfFruits; window.SaveChangingAmountOfFruits += WindowSaveChangingAmountOfFruits;
window.Show(); window.ShowDialog();
} }
private void addButton_Click(object sender, RoutedEventArgs e) private void addButton_Click(object sender, RoutedEventArgs e)
{ {
AmountWindow window = new AmountWindow(fruit, 1); AmountWindow window = new AmountWindow(fruit, 1);
window.SaveChangingAmountOfFruits += WindowSaveChangingAmountOfFruits; window.SaveChangingAmountOfFruits += WindowSaveChangingAmountOfFruits;
window.Show(); window.ShowDialog();
} }
private void WindowSaveChangingAmountOfFruits(int amountChanged) private void WindowSaveChangingAmountOfFruits(int amountChanged)