Bläddra i källkod

更新dll

样式分支
fyf 2 år sedan
förälder
incheckning
c0be26589c
3 ändrade filer med 23 tillägg och 1 borttagningar
  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 Visa fil

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


#region API调用 #region API调用
/// <summary> /// <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> /// </summary>
/// <param name="alarmTable"></param> /// <param name="alarmTable"></param>


+ 3
- 1
BPASmartClient/Control/DataVView.xaml Visa fil

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

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


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


+ 3
- 0
BPASmartClient/Control/DataVView.xaml.cs Visa fil

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


Laddar…
Avbryt
Spara