fixed bug

This commit is contained in:
2024-05-05 18:28:40 +02:00
parent 21aad617a2
commit fe8aa77258

View File

@@ -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(() =>