From fe8aa77258669b11e65892320e1a06c637f7e2ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miskolczi=20Rich=C3=A1rd?= Date: Sun, 5 May 2024 18:28:40 +0200 Subject: [PATCH] fixed bug --- WD7UVN_SzTGUI_2023242.Client.WPF/MainWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WD7UVN_SzTGUI_2023242.Client.WPF/MainWindow.xaml.cs b/WD7UVN_SzTGUI_2023242.Client.WPF/MainWindow.xaml.cs index 8c2d885..2924212 100644 --- a/WD7UVN_SzTGUI_2023242.Client.WPF/MainWindow.xaml.cs +++ b/WD7UVN_SzTGUI_2023242.Client.WPF/MainWindow.xaml.cs @@ -43,7 +43,7 @@ namespace WD7UVN_SzTGUI_2023242.Client.WPF CreateNewCustomerViewModel viewModel = new CreateNewCustomerViewModel(); viewModel.NewCustomerCreated += (newCustomer) => { - var getAllCustomersViewModel = (GetAllCustomersViewModel)DataContext; + var getAllCustomersViewModel = (MainWindowViewModel)DataContext; if (getAllCustomersViewModel != null) { Application.Current.Dispatcher.Invoke(() =>