refactor:重构了变量的导入和删除
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<valueConverts:EnumToStringConverter x:Key="EnumToStringConverter" />
|
||||
<ex:EnumBindingSource x:Key="ProtocolType" EnumType="{x:Type en:ProtocolType}" />
|
||||
<ex:EnumBindingSource x:Key="SignalType" EnumType="{x:Type enums:SignalType}" />
|
||||
<ex:EnumBindingSource x:Key="CSharpDataType" EnumType="{x:Type enums:DataType}" />
|
||||
<ex:EnumBindingSource x:Key="DataType" EnumType="{x:Type enums:DataType}" />
|
||||
</ui:ContentDialog.Resources>
|
||||
|
||||
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
||||
@@ -160,8 +160,8 @@
|
||||
Margin="0,15,0,0"
|
||||
hc:InfoElement.Title="数据类型:"
|
||||
IsEnabled="{Binding IsAddModel}"
|
||||
ItemsSource="{Binding Source={StaticResource CSharpDataType}}"
|
||||
SelectedItem="{Binding Variable.CSharpDataType, UpdateSourceTrigger=PropertyChanged}">
|
||||
ItemsSource="{Binding Source={StaticResource DataType}}"
|
||||
SelectedItem="{Binding Variable.DataType, UpdateSourceTrigger=PropertyChanged}">
|
||||
<ComboBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding Converter={StaticResource EnumDescriptionConverter}}" />
|
||||
|
||||
Reference in New Issue
Block a user