|
@@ -407,7 +407,8 @@ public partial class DeviceDetailsWindow : Window
|
|
|
|
|
|
|
|
void UpdateMessage()
|
|
void UpdateMessage()
|
|
|
{
|
|
{
|
|
|
- messageTextBlock.Text = $"当前客户端仍可连接到设备。是否确认保留这次网络配置?\n\n剩余 {remaining} 秒;超时或取消时,Linux 端会自动回滚。";
|
|
|
|
|
|
|
+ messageTextBlock.Text = "当前客户端仍可连接到设备。是否确认保留这次网络配置?\n\n超时或取消时,Linux 端会自动回滚。";
|
|
|
|
|
+ confirmButton.Content = $"保留({remaining}秒)";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
var timer = new System.Windows.Threading.DispatcherTimer { Interval = TimeSpan.FromSeconds(1) };
|
|
var timer = new System.Windows.Threading.DispatcherTimer { Interval = TimeSpan.FromSeconds(1) };
|