215 lines
7.7 KiB
XML
215 lines
7.7 KiB
XML
<Window
|
||
x:Class="CopyRou.MainWindow"
|
||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
xmlns:local="clr-namespace:CopyRou"
|
||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
Title="ROU文件复制工具"
|
||
Width="586"
|
||
Height="631"
|
||
MinWidth="586"
|
||
MinHeight="631"
|
||
mc:Ignorable="d">
|
||
<Grid Margin="10">
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="Auto" />
|
||
<RowDefinition Height="Auto" />
|
||
<RowDefinition Height="*" />
|
||
<RowDefinition Height="Auto" />
|
||
<RowDefinition Height="Auto" />
|
||
</Grid.RowDefinitions>
|
||
|
||
<!-- 配置区域 -->
|
||
<GroupBox
|
||
Grid.Row="0"
|
||
Margin="0,0,0,10"
|
||
Header="路径配置">
|
||
<Grid>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="Auto" />
|
||
<RowDefinition Height="Auto" />
|
||
<RowDefinition Height="Auto" />
|
||
</Grid.RowDefinitions>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="Auto" />
|
||
<ColumnDefinition Width="*" />
|
||
<ColumnDefinition Width="Auto" />
|
||
</Grid.ColumnDefinitions>
|
||
|
||
<Label
|
||
Grid.Row="0"
|
||
Grid.Column="0"
|
||
Margin="5"
|
||
VerticalAlignment="Top"
|
||
Content="源路径:" />
|
||
<TextBox
|
||
x:Name="SourcePathsTextBox"
|
||
Grid.Row="0"
|
||
Grid.Column="1"
|
||
Height="60"
|
||
Margin="5"
|
||
AcceptsReturn="True"
|
||
IsReadOnly="True"
|
||
TextWrapping="Wrap"
|
||
VerticalScrollBarVisibility="Auto" />
|
||
<Button
|
||
x:Name="AddSourceButton"
|
||
Grid.Row="0"
|
||
Grid.Column="2"
|
||
Width="60"
|
||
Height="25"
|
||
Margin="5"
|
||
Click="AddSourceButton_Click"
|
||
Content="添加" />
|
||
|
||
<Label
|
||
Grid.Row="1"
|
||
Grid.Column="0"
|
||
Margin="5"
|
||
Content="目标路径:" />
|
||
<TextBox
|
||
x:Name="DestPathTextBox"
|
||
Grid.Row="1"
|
||
Grid.Column="1"
|
||
Margin="5"
|
||
IsReadOnly="True" />
|
||
<Button
|
||
x:Name="BrowseDestButton"
|
||
Grid.Row="1"
|
||
Grid.Column="2"
|
||
Width="60"
|
||
Height="25"
|
||
Margin="5"
|
||
Click="BrowseDestButton_Click"
|
||
Content="浏览" />
|
||
|
||
<!-- 保存配置按钮 -->
|
||
<Button
|
||
x:Name="SaveConfigButton"
|
||
Grid.Row="2"
|
||
Grid.Column="1"
|
||
Grid.ColumnSpan="2"
|
||
Width="100"
|
||
Height="25"
|
||
Margin="5"
|
||
HorizontalAlignment="Right"
|
||
Click="SaveConfigButton_Click"
|
||
Content="保存配置" />
|
||
</Grid>
|
||
</GroupBox>
|
||
|
||
<!-- 输入区域 -->
|
||
<Grid Grid.Row="1" Margin="0,0,0,10">
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition Width="1.2*" />
|
||
<ColumnDefinition Width="*" />
|
||
</Grid.ColumnDefinitions>
|
||
|
||
<!-- 单个料号输入区域 -->
|
||
<GroupBox
|
||
Grid.Column="0"
|
||
Margin="0,0,5,0"
|
||
Header="单个料号输入">
|
||
<Grid>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="Auto" />
|
||
<RowDefinition Height="Auto" />
|
||
<RowDefinition Height="Auto" />
|
||
</Grid.RowDefinitions>
|
||
<TextBlock
|
||
Grid.Row="0"
|
||
Margin="5"
|
||
Foreground="Gray"
|
||
Text="输入单个料号(如:27362a)" />
|
||
<StackPanel Margin="0,20,0,0" Orientation="Horizontal">
|
||
<TextBox
|
||
x:Name="SingleCodeTextBox"
|
||
Grid.Row="1"
|
||
MinWidth="150"
|
||
Margin="5"
|
||
KeyDown="SingleCodeTextBox_KeyDown" />
|
||
<Button
|
||
x:Name="AddSingleCodeButton"
|
||
Grid.Row="2"
|
||
Width="80"
|
||
Height="25"
|
||
Margin="5"
|
||
HorizontalAlignment="Left"
|
||
Click="AddSingleCodeButton_Click"
|
||
Content="添加" />
|
||
</StackPanel>
|
||
</Grid>
|
||
</GroupBox>
|
||
|
||
<!-- 批量料号输入区域 -->
|
||
<GroupBox
|
||
Grid.Column="1"
|
||
Margin="5,0,0,0"
|
||
Header="批量料号输入">
|
||
<Grid>
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="Auto" />
|
||
<RowDefinition Height="*" />
|
||
<RowDefinition Height="Auto" />
|
||
</Grid.RowDefinitions>
|
||
<TextBlock
|
||
Grid.Row="0"
|
||
Margin="5"
|
||
Foreground="Gray"
|
||
Text="每行输入一个料号(如:27362a)" />
|
||
<TextBox
|
||
x:Name="CodesTextBox"
|
||
Grid.Row="1"
|
||
Height="100"
|
||
Margin="5"
|
||
AcceptsReturn="True"
|
||
TextWrapping="Wrap"
|
||
VerticalScrollBarVisibility="Auto" />
|
||
<!-- 操作按钮 -->
|
||
<StackPanel
|
||
Grid.Row="2"
|
||
Margin="5"
|
||
HorizontalAlignment="Center"
|
||
Orientation="Horizontal">
|
||
<Button
|
||
x:Name="StartButton"
|
||
Width="80"
|
||
Height="25"
|
||
Margin="5"
|
||
Click="StartButton_Click"
|
||
Content="开始处理" />
|
||
<Button
|
||
x:Name="ClearButton"
|
||
Width="80"
|
||
Height="25"
|
||
Margin="5"
|
||
Click="ClearButton_Click"
|
||
Content="清空" />
|
||
</StackPanel>
|
||
</Grid>
|
||
</GroupBox>
|
||
</Grid>
|
||
|
||
<!-- 进度条 -->
|
||
<ProgressBar
|
||
x:Name="ProgressBar"
|
||
Grid.Row="3"
|
||
Height="20"
|
||
Margin="0,0,0,10"
|
||
Maximum="100"
|
||
Minimum="0"
|
||
Value="0" />
|
||
|
||
<!-- 日志区域 -->
|
||
<GroupBox Grid.Row="4" Header="处理日志">
|
||
<TextBox
|
||
x:Name="LogTextBox"
|
||
Height="150"
|
||
Margin="5"
|
||
IsReadOnly="True"
|
||
TextWrapping="Wrap"
|
||
VerticalScrollBarVisibility="Auto" />
|
||
</GroupBox>
|
||
</Grid>
|
||
</Window> |