Pārlūkot izejas kodu

更新dll

样式分支
fyf pirms 2 gadiem
vecāks
revīzija
c0be26589c
3 mainītis faili ar 23 papildinājumiem un 1 dzēšanām
  1. +17
    -0
      BPASmartClient.IoT/DataVClient.cs
  2. +3
    -1
      BPASmartClient/Control/DataVView.xaml
  3. +3
    -0
      BPASmartClient/Control/DataVView.xaml.cs

+ 17
- 0
BPASmartClient.IoT/DataVClient.cs Parādīt failu

@@ -91,6 +91,23 @@ namespace BPASmartClient.IoT

#region API调用
/// <summary>
/// 刷新店铺列表
/// </summary>
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);
}
}
/// <summary>
/// 增加告警信息
/// </summary>
/// <param name="alarmTable"></param>


+ 3
- 1
BPASmartClient/Control/DataVView.xaml Parādīt failu

@@ -85,7 +85,9 @@
<Button Margin="80,0,0,0" Tag="Save" Click="Button_Click" >保存text</Button>
<Button Margin="20,0,0,0" Tag="Insert" Click="Button_Click" >导入text</Button>
</StackPanel>

<StackPanel Orientation="Horizontal" Margin="0,20,0,0" >
<Button Margin="80,0,0,0" Tag="刷新" Click="Button_Click" >刷新大屏列表</Button>
</StackPanel>
</StackPanel>

<Grid Grid.Column="1" Margin="10">


+ 3
- 0
BPASmartClient/Control/DataVView.xaml.cs Parādīt failu

@@ -134,6 +134,9 @@ namespace BPASmartClient.Control
else
NoticeDemoViewModel.OpenMsg(EnumPromptType.Warn, MainViewModel.GetInstance().window, "提示", $"密码输入错误!");
break;
case "刷新":
DataVClient.GetInstance().RefreshTheListOfStores();
break;
}
}
}


Notiek ielāde…
Atcelt
Saglabāt