添加刷新
This commit is contained in:
commit
2be238be8b
1 file changed
+5
-5
@@ -77,11 +77,11 @@ namespace ForwardingServerUI.Class
|
||||
else
|
||||
{
|
||||
Personm deserializedPerson = JsonSerializer.Deserialize<Personm>(DAT)!;
|
||||
Application.Current.Dispatcher.Invoke(() => {
|
||||
Application.Current.Dispatcher.Invoke(() => {
|
||||
var mach = MainWindowViewModel._machineTable.Select("Enterprise='" + deserializedPerson.SERVEREnterprise +
|
||||
"'and MachineName='" + deserializedPerson.SERVERMachineName + "'");
|
||||
if (mach.Length > 0)
|
||||
{
|
||||
{//刷新设备信息表
|
||||
DataRow dataRow = mach.First();
|
||||
dataRow.BeginEdit();
|
||||
dataRow["ID"] = client.Id;
|
||||
@@ -94,9 +94,9 @@ namespace ForwardingServerUI.Class
|
||||
dataRow.AcceptChanges();
|
||||
}
|
||||
else
|
||||
{
|
||||
MainWindowViewModel._machineTable.Rows.Add(client.Id, client.IP, 30, "/" + deserializedPerson.SERVEREnterprise,
|
||||
deserializedPerson.SERVERMachineName, deserializedPerson.MachineVer);
|
||||
{//添加设备信息表
|
||||
MainWindowViewModel._machineTable.Rows.Add(client.Id, client.IP, 30, "/" + deserializedPerson.SERVEREnterprise,
|
||||
deserializedPerson.SERVERMachineName, deserializedPerson.MachineVer);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user