命名规范化
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
xmlns:hc="https://handyorg.github.io/handycontrol"
|
||||
xmlns:local="clr-namespace:RookieStation"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:util="clr-namespace:RookieStation.Utils"
|
||||
xmlns:utils="clr-namespace:RookieStation.Utils"
|
||||
Width="81"
|
||||
Height="396"
|
||||
MinWidth="400"
|
||||
@@ -15,9 +15,9 @@
|
||||
mc:Ignorable="d">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<util:EnumItemsSource x:Key="GroupEnumDescriptionSource" Type="{x:Type local:NumOfGroup}" />
|
||||
<util:EnumItemsSource x:Key="LengthTypeEnumDescriptionSource" Type="{x:Type local:LengthType}" />
|
||||
<util:EnumItemsSource x:Key="WidthTypeEnumDescriptionSource" Type="{x:Type local:WidthType}" />
|
||||
<utils:EnumItemsSource x:Key="GroupEnumDescriptionSource" Type="{x:Type local:NumOfGroup}" />
|
||||
<utils:EnumItemsSource x:Key="LengthTypeEnumDescriptionSource" Type="{x:Type local:ShelfLength}" />
|
||||
<utils:EnumItemsSource x:Key="WidthTypeEnumDescriptionSource" Type="{x:Type local:ShelfWidth}" />
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml" />
|
||||
<ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml" />
|
||||
@@ -36,11 +36,7 @@
|
||||
<RowDefinition Height="5*" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<GroupBox
|
||||
Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
Margin="2"
|
||||
Header="通道宽度">
|
||||
<GroupBox Grid.Row="0" Grid.Column="0" Margin="2" Header="通道宽度">
|
||||
<TextBox
|
||||
x:Name="tbPassageWidth"
|
||||
InputMethod.IsInputMethodEnabled="False"
|
||||
@@ -48,11 +44,7 @@
|
||||
Text="1500"
|
||||
TextAlignment="Center" />
|
||||
</GroupBox>
|
||||
<GroupBox
|
||||
Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
Margin="2"
|
||||
Header="起点距离">
|
||||
<GroupBox Grid.Row="0" Grid.Column="1" Margin="2" Header="起点距离">
|
||||
<TextBox
|
||||
x:Name="tbDistance"
|
||||
InputMethod.IsInputMethodEnabled="False"
|
||||
@@ -60,11 +52,7 @@
|
||||
Text="0"
|
||||
TextAlignment="Center" />
|
||||
</GroupBox>
|
||||
<GroupBox
|
||||
Grid.Row="0"
|
||||
Grid.Column="2"
|
||||
Margin="2"
|
||||
Header="起点垂距 ">
|
||||
<GroupBox Grid.Row="0" Grid.Column="2" Margin="2" Header="起点垂距 ">
|
||||
<TextBox
|
||||
x:Name="tbOffest"
|
||||
InputMethod.IsInputMethodEnabled="False"
|
||||
@@ -72,11 +60,7 @@
|
||||
Text="0"
|
||||
TextAlignment="Center" />
|
||||
</GroupBox>
|
||||
<GroupBox
|
||||
Grid.Row="0"
|
||||
Grid.Column="3"
|
||||
Margin="2"
|
||||
Header="货架间距 ">
|
||||
<GroupBox Grid.Row="0" Grid.Column="3" Margin="2" Header="货架间距 ">
|
||||
<TextBox
|
||||
x:Name="tbSpacing"
|
||||
InputMethod.IsInputMethodEnabled="False"
|
||||
@@ -94,21 +78,9 @@
|
||||
CanUserSortColumns="False"
|
||||
ItemsSource="{Binding Data}">
|
||||
<DataGrid.Columns>
|
||||
<DataGridComboBoxColumn
|
||||
MinWidth="100"
|
||||
Header="成组"
|
||||
ItemsSource="{Binding Source={StaticResource GroupEnumDescriptionSource}}"
|
||||
SelectedValueBinding="{Binding NumOfGroup, Converter={StaticResource GroupEnumDescriptionSource}, Mode=TwoWay}" />
|
||||
<DataGridComboBoxColumn
|
||||
MinWidth="100"
|
||||
Header="长度"
|
||||
ItemsSource="{Binding Source={StaticResource LengthTypeEnumDescriptionSource}}"
|
||||
SelectedValueBinding="{Binding LengthType, Converter={StaticResource LengthTypeEnumDescriptionSource}, Mode=TwoWay}" />
|
||||
<DataGridComboBoxColumn
|
||||
MinWidth="100"
|
||||
Header="宽度"
|
||||
ItemsSource="{Binding Source={StaticResource WidthTypeEnumDescriptionSource}}"
|
||||
SelectedValueBinding="{Binding WidthType, Converter={StaticResource WidthTypeEnumDescriptionSource}, Mode=TwoWay}" />
|
||||
<DataGridComboBoxColumn MinWidth="100" Header="成组" ItemsSource="{Binding Source={StaticResource GroupEnumDescriptionSource}}" SelectedValueBinding="{Binding NumOfGroup, Converter={StaticResource GroupEnumDescriptionSource}, Mode=TwoWay}" />
|
||||
<DataGridComboBoxColumn MinWidth="100" Header="长度" ItemsSource="{Binding Source={StaticResource LengthTypeEnumDescriptionSource}}" SelectedValueBinding="{Binding ShelfLength, Converter={StaticResource LengthTypeEnumDescriptionSource}, Mode=TwoWay}" />
|
||||
<DataGridComboBoxColumn MinWidth="100" Header="宽度" ItemsSource="{Binding Source={StaticResource WidthTypeEnumDescriptionSource}}" SelectedValueBinding="{Binding ShelfWidth, Converter={StaticResource WidthTypeEnumDescriptionSource}, Mode=TwoWay}" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<TextBlock
|
||||
|
||||
Reference in New Issue
Block a user