添加刷新
This commit is contained in:
commit
2be238be8b
1 file changed
+2
-2
@@ -81,7 +81,7 @@ namespace ForwardingServerUI.Class
|
||||
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,7 +94,7 @@ namespace ForwardingServerUI.Class
|
||||
dataRow.AcceptChanges();
|
||||
}
|
||||
else
|
||||
{
|
||||
{//添加设备信息表
|
||||
MainWindowViewModel._machineTable.Rows.Add(client.Id, client.IP, 30, "/" + deserializedPerson.SERVEREnterprise,
|
||||
deserializedPerson.SERVERMachineName, deserializedPerson.MachineVer);
|
||||
|
||||
|
||||
Reference in new issue
Block a user