ソースを参照

refactor(ui): 优化配置变更提示文案为“将改为”

统一IP、网关及DNS修改状态的显示格式,提升可读性
yangkaixiang 1 ヶ月 前
コミット
bfc6155523
1 ファイル変更3 行追加3 行削除
  1. 3 3
      windows/NetworkTool.Client/DeviceDetailsWindow.xaml.cs

+ 3 - 3
windows/NetworkTool.Client/DeviceDetailsWindow.xaml.cs

@@ -1261,15 +1261,15 @@ public partial class DeviceDetailsWindow : Window
             var lines = new List<string> { DisplayLabel };
             if (IsAddressModified)
             {
-                lines.Add($"IP:{FormatAddressSummary(_originalDhcp4, _originalAddressKeys)} -> {FormatAddressSummary(Dhcp4, GetAddressKeys())}");
+                lines.Add($"IP:{FormatAddressSummary(_originalDhcp4, _originalAddressKeys)} 将改为 {FormatAddressSummary(Dhcp4, GetAddressKeys())}");
             }
             if (IsGatewayModified)
             {
-                lines.Add($"网关:{FormatGatewaySummary(_originalDhcp4, _originalGatewayKeys)} -> {FormatGatewaySummary(Dhcp4, GetGatewayKeys())}");
+                lines.Add($"网关:{FormatGatewaySummary(_originalDhcp4, _originalGatewayKeys)} 将改为 {FormatGatewaySummary(Dhcp4, GetGatewayKeys())}");
             }
             if (IsDnsModified)
             {
-                lines.Add($"DNS:{FormatKeys(_originalDnsKeys)} -> {FormatKeys(GetDnsKeys())}");
+                lines.Add($"DNS:{FormatKeys(_originalDnsKeys)} 将改为 {FormatKeys(GetDnsKeys())}");
             }
 
             return lines.Count == 1 ? string.Empty : string.Join(Environment.NewLine, lines);