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