更新最新2026

This commit is contained in:
GukSang.Jin
2026-05-18 14:06:04 +08:00
parent 41435205a4
commit 40bcd313a2
22 changed files with 1275 additions and 323 deletions

View File

@@ -83,7 +83,7 @@ namespace TabletTester2025.ViewModels
_isConnecting = true;
PlcStatus = "连接中";
await _plc.ConnectAsync();
PlcStatus = _plc.IsConnected ? "已连接" : "连接失败";
PlcStatus = await _plc.CheckConnectionAsync() ? "已连接" : "连接失败";
}
catch
{
@@ -105,6 +105,12 @@ namespace TabletTester2025.ViewModels
return;
}
if (!await _plc.CheckConnectionAsync())
{
PlcStatus = "连接失败";
return;
}
PlcStatus = "已连接";
if (_isUpdatingRealtime)
return;