|
|
@@ -599,15 +599,7 @@ namespace SWRIS
|
|
|
{
|
|
|
if (!HasConnectedDevice())
|
|
|
{
|
|
|
- NoticeBox.Show($"IP地址[{App.Config.IpAddress}]已恢复,5秒后将自动重启程序", "提示", MessageBoxIcon.Info, true, 5000);
|
|
|
- if (HasConnectedDevice())
|
|
|
- {
|
|
|
- NoticeBox.Show($"检测到有设备处于连接状态,已取消自动重启", "提示", MessageBoxIcon.Info, true, 5000);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- await RestartApplication();
|
|
|
- }
|
|
|
+ NoticeBox.Show($"IP地址[{App.Config.IpAddress}]已恢复,如长时间未有设备连接请重启程序", "提示", MessageBoxIcon.Info, true, 5000);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -622,15 +614,7 @@ namespace SWRIS
|
|
|
{
|
|
|
if (!HasConnectedDevice())
|
|
|
{
|
|
|
- NoticeBox.Show($"端口[{App.Config.Port}]已释放,5秒后将自动重启程序", "提示", MessageBoxIcon.Info, true, 5000);
|
|
|
- if (HasConnectedDevice())
|
|
|
- {
|
|
|
- NoticeBox.Show($"检测到有设备处于连接状态,已取消自动重启", "提示", MessageBoxIcon.Info, true, 5000);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- await RestartApplication();
|
|
|
- }
|
|
|
+ NoticeBox.Show($"端口[{App.Config.Port}]已释放,如长时间未有设备连接请重启程序", "提示", MessageBoxIcon.Info, true, 5000);
|
|
|
}
|
|
|
}
|
|
|
|