diff --git a/Class/DataReceived.cs b/Class/DataReceived.cs index 30a8f96..9470bad 100644 --- a/Class/DataReceived.cs +++ b/Class/DataReceived.cs @@ -8,6 +8,7 @@ using System.Net.NetworkInformation; using System.Net.Sockets; using System.Text; using System.Text.Json; +using TouchSocket.Core; namespace SunlightAggregationTerminal.Class { @@ -136,10 +137,18 @@ namespace SunlightAggregationTerminal.Class { QueryPage.Query_data(val.ToString()!); } - if (data.TryGetValue("QueryDetail", out val) && val != null)//查询接受 + if (data.TryGetValue("QueryDetail", out val) && val != null)// { QueryDetail.Query_data(val.ToString()!); } + if (data.TryGetValue("InfoMachine", out val) && val != null)// + { + InfoDetail.Info_data(val.ToString()!,data.GetValue("Type").ToString()!); + } + if (data.TryGetValue("InfoMachinePipes", out val) && val != null)// + { + InfoDetail.Info_data(val.ToString()!, "00"); + } if (data.TryGetValue("Notification", out val) && val != null)//信息通知接受 { var dataNotification = JsonSerializer.Deserialize>>(val.ToString()!); diff --git a/InfoDetail.xaml b/InfoDetail.xaml index e3c78bb..3a4d3e0 100644 --- a/InfoDetail.xaml +++ b/InfoDetail.xaml @@ -3,7 +3,8 @@ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="SunlightAggregationTerminal.InfoDetail" xmlns:converters="clr-namespace:SunlightAggregationTerminal.Converters" - Title="细节信息"> + Title="细节信息" + Loaded="ContentPage_Loaded"> @@ -44,23 +45,25 @@