From c0be26589c2521f3d1c25661172909582ee0853e Mon Sep 17 00:00:00 2001 From: fyf Date: Sat, 28 May 2022 10:05:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0dll?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BPASmartClient.IoT/DataVClient.cs | 17 +++++++++++++++++ BPASmartClient/Control/DataVView.xaml | 4 +++- BPASmartClient/Control/DataVView.xaml.cs | 3 +++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/BPASmartClient.IoT/DataVClient.cs b/BPASmartClient.IoT/DataVClient.cs index b3f1063a..c4ca8862 100644 --- a/BPASmartClient.IoT/DataVClient.cs +++ b/BPASmartClient.IoT/DataVClient.cs @@ -91,6 +91,23 @@ namespace BPASmartClient.IoT #region API调用 /// + /// 刷新店铺列表 + /// + public void RefreshTheListOfStores() + { + try + { + if (DeviceDataV != null && DeviceDataV.GetIsConnected() && DeviceDataV.deviceTable != null) + { + DeviceDataV.IOT_Publish(BroadcastPubTopic, Tools.JsonConvertTools("刷新店铺列表")); + } + } + catch (Exception ex) + { + MessageLog.GetInstance.Show(ex.Message); + } + } + /// /// 增加告警信息 /// /// diff --git a/BPASmartClient/Control/DataVView.xaml b/BPASmartClient/Control/DataVView.xaml index f630ba73..e5667a76 100644 --- a/BPASmartClient/Control/DataVView.xaml +++ b/BPASmartClient/Control/DataVView.xaml @@ -85,7 +85,9 @@ - + + + diff --git a/BPASmartClient/Control/DataVView.xaml.cs b/BPASmartClient/Control/DataVView.xaml.cs index d0067c42..9b09729b 100644 --- a/BPASmartClient/Control/DataVView.xaml.cs +++ b/BPASmartClient/Control/DataVView.xaml.cs @@ -134,6 +134,9 @@ namespace BPASmartClient.Control else NoticeDemoViewModel.OpenMsg(EnumPromptType.Warn, MainViewModel.GetInstance().window, "提示", $"密码输入错误!"); break; + case "刷新": + DataVClient.GetInstance().RefreshTheListOfStores(); + break; } } }