完成编辑变量对话框的更改
This commit is contained in:
@@ -82,6 +82,7 @@
|
||||
Grid.Column="2"
|
||||
MinWidth="150"
|
||||
hc:InfoElement.Title="S7地址:"
|
||||
IsEnabled="{Binding IsAddModel}"
|
||||
Text="{Binding Variable.S7Address, UpdateSourceTrigger=PropertyChanged}">
|
||||
<hc:TextBox.Style>
|
||||
<Style BasedOn="{StaticResource {x:Type hc:TextBox}}" TargetType="hc:TextBox">
|
||||
@@ -101,6 +102,7 @@
|
||||
Grid.Column="2"
|
||||
MinWidth="150"
|
||||
hc:InfoElement.Title="OpcUa节点ID:"
|
||||
IsEnabled="{Binding IsAddModel}"
|
||||
Text="{Binding Variable.OpcUaNodeId, UpdateSourceTrigger=PropertyChanged}">
|
||||
<hc:TextBox.Style>
|
||||
<Style BasedOn="{StaticResource {x:Type hc:TextBox}}" TargetType="hc:TextBox">
|
||||
@@ -162,6 +164,7 @@
|
||||
Grid.Column="2"
|
||||
Margin="0,15,0,0"
|
||||
hc:InfoElement.Title="数据类型:"
|
||||
IsEnabled="{Binding IsAddModel}"
|
||||
ItemsSource="{Binding Source={StaticResource CSharpDataType}}"
|
||||
SelectedItem="{Binding Variable.CSharpDataType, UpdateSourceTrigger=PropertyChanged}">
|
||||
<ComboBox.ItemTemplate>
|
||||
|
||||
@@ -9,6 +9,7 @@ public partial class VariableDialog
|
||||
{
|
||||
private const int ContentAreaMaxWidth = 1200;
|
||||
private const int ContentAreaMaxHeight = 900;
|
||||
|
||||
|
||||
public VariableDialog()
|
||||
{
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
</ui:AppBarButton>
|
||||
|
||||
<ui:AppBarButton
|
||||
Command="{Binding EditVarDataCommand}"
|
||||
Command="{Binding UpdateVariableCommand}"
|
||||
CommandParameter="{Binding VariableTable}"
|
||||
Label="编辑变量">
|
||||
<ui:AppBarButton.Icon>
|
||||
|
||||
Reference in New Issue
Block a user