diff --git a/SettingModule/ViewModels/Dialogs/TCPConfigViewModel.cs b/SettingModule/ViewModels/Dialogs/TCPConfigViewModel.cs
index 4ecd64c..0a7f13c 100644
--- a/SettingModule/ViewModels/Dialogs/TCPConfigViewModel.cs
+++ b/SettingModule/ViewModels/Dialogs/TCPConfigViewModel.cs
@@ -8,14 +8,14 @@ using UIShare.ViewModelBase;
namespace SettingModule.ViewModels.Dialogs
{
///
- /// TCP 连接配置对话框 VM。
+ /// Tcp 连接配置对话框 VM。
/// 通过 DialogParameters 接收宿主 DeviceInfoVM;保存时把副本写回宿主。
///
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("Device");
- Title = $"TCP 连接配置 - {_hostDevice?.DeviceName}";
+ Title = $"Tcp 连接配置 - {_hostDevice?.DeviceName}";
Config = new TcpConfigVM(_hostDevice?.TcpConfig);
}
else if (parameters.ContainsKey("Config"))
diff --git a/SettingModule/ViewModels/SettingViewModel.cs b/SettingModule/ViewModels/SettingViewModel.cs
index c980c24..2e996be 100644
--- a/SettingModule/ViewModels/SettingViewModel.cs
+++ b/SettingModule/ViewModels/SettingViewModel.cs
@@ -145,7 +145,7 @@ namespace SettingModule.ViewModels
///
- /// 打开"连接配置"对话框。按 SelectedDevice.ConnectionType 决定开 TCP 还是串口对话框。
+ /// 打开"连接配置"对话框。按 SelectedDevice.ConnectionType 决定开 Tcp 还是串口对话框。
///
private void OnOpenConnectionConfig()
{
@@ -164,7 +164,7 @@ namespace SettingModule.ViewModels
if (string.IsNullOrEmpty(dialogName))
{
- StatusMessage = "当前设备未配置连接方式(请先选择 TCP 或 Serial)";
+ StatusMessage = "当前设备未配置连接方式(请先选择 Tcp 或 Serial)";
return;
}
diff --git a/SettingModule/Views/SettingView.xaml b/SettingModule/Views/SettingView.xaml
index a0e3c18..9b5f5cb 100644
--- a/SettingModule/Views/SettingView.xaml
+++ b/SettingModule/Views/SettingView.xaml
@@ -310,20 +310,20 @@
+ SelectedItem="{Binding SelectedDevice.ConnectionType,Mode=TwoWay}"/>
-
+