From 4e52c385d5502edd1c7998963eff82a9e5d80318 Mon Sep 17 00:00:00 2001 From: fyf Date: Sat, 28 May 2022 10:24:14 +0800 Subject: [PATCH] 1 --- BPASmartClient/Control/DataVView.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BPASmartClient/Control/DataVView.xaml.cs b/BPASmartClient/Control/DataVView.xaml.cs index 4265ebe9..09047adb 100644 --- a/BPASmartClient/Control/DataVView.xaml.cs +++ b/BPASmartClient/Control/DataVView.xaml.cs @@ -60,7 +60,10 @@ namespace BPASmartClient.Control { case "Add": istrue = DataVViewModel.GetInstance().Add(); - if (istrue) NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, MainViewModel.GetInstance().window, "提示", $"增加成功!"); + if (istrue) { + NoticeDemoViewModel.OpenMsg(EnumPromptType.Success, MainViewModel.GetInstance().window, "提示", $"增加成功!"); + DataVClient.GetInstance().RefreshTheListOfStores(); + } else NoticeDemoViewModel.OpenMsg(EnumPromptType.Error, MainViewModel.GetInstance().window, "提示", $"增加失败!"); break; case "Update":