添加了端口号
This commit is contained in:
@@ -49,6 +49,11 @@ public class DbDevice
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备的端口号。
|
||||
/// </summary>
|
||||
public int Prot { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 设备的通信协议类型。
|
||||
/// </summary>
|
||||
|
||||
@@ -58,6 +58,12 @@ public partial class Device : ObservableObject
|
||||
[ObservableProperty]
|
||||
private string name;
|
||||
|
||||
/// <summary>
|
||||
/// 设备的端口号。
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
private int prot;
|
||||
|
||||
/// <summary>
|
||||
/// 设备的通信协议类型。
|
||||
/// </summary>
|
||||
|
||||
@@ -82,7 +82,7 @@
|
||||
HorizontalAlignment="Left"
|
||||
Style="{StaticResource TextBlockSubTitle}" />
|
||||
<TextBox AcceptsReturn="True"
|
||||
Text="{Binding Device.Ip, UpdateSourceTrigger=PropertyChanged}" />
|
||||
Text="{Binding Device.Prot, UpdateSourceTrigger=PropertyChanged}" />
|
||||
|
||||
|
||||
<!-- 通讯协议-->
|
||||
|
||||
@@ -68,8 +68,9 @@
|
||||
<ui:AppBarButton.Icon>
|
||||
<ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.Edit}" />
|
||||
</ui:AppBarButton.Icon>
|
||||
|
||||
</ui:AppBarButton>
|
||||
|
||||
|
||||
<ui:AppBarButton Command="{Binding SaveModifiedVarDataCommand}"
|
||||
Label="保存变量">
|
||||
<ui:AppBarButton.Icon>
|
||||
|
||||
Reference in New Issue
Block a user