优化设置界面Tcp显示

This commit is contained in:
hsc
2026-06-11 16:09:47 +08:00
parent 5cac253cb8
commit a9ee9e974e
4 changed files with 10 additions and 11 deletions

View File

@@ -8,14 +8,14 @@ using UIShare.ViewModelBase;
namespace SettingModule.ViewModels.Dialogs
{
/// <summary>
/// TCP 连接配置对话框 VM。
/// Tcp 连接配置对话框 VM。
/// 通过 DialogParameters 接收宿主 DeviceInfoVM保存时把副本写回宿主。
/// </summary>
public class TCPConfigViewModel : DialogViewModelBase
{
#region
private string _title = "TCP 连接配置";
private string _title = "Tcp 连接配置";
public string Title
{
get => _title;
@@ -105,7 +105,7 @@ namespace SettingModule.ViewModels.Dialogs
{
_hostDevice.TcpConfig ??= new TcpConfigVM();
Config.CopyTo(_hostDevice.TcpConfig);
_hostDevice.ConnectionType = "TCP";
_hostDevice.ConnectionType = "Tcp";
}
RequestClose.Invoke(ButtonResult.OK);
@@ -121,7 +121,7 @@ namespace SettingModule.ViewModels.Dialogs
if (parameters.ContainsKey("Device"))
{
_hostDevice = parameters.GetValue<DeviceInfoVM>("Device");
Title = $"TCP 连接配置 - {_hostDevice?.DeviceName}";
Title = $"Tcp 连接配置 - {_hostDevice?.DeviceName}";
Config = new TcpConfigVM(_hostDevice?.TcpConfig);
}
else if (parameters.ContainsKey("Config"))