61 lines
3.0 KiB
XML
61 lines
3.0 KiB
XML
<Window x:Class="SSPCTester.UI.Views.NewProjectDialog"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="新建项目"
|
|
Width="480" Height="420"
|
|
WindowStartupLocation="CenterOwner"
|
|
ResizeMode="NoResize"
|
|
Background="{StaticResource BgAppBrush}"
|
|
ShowInTaskbar="False">
|
|
<Grid Margin="24">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Text="新建项目" FontSize="{StaticResource FsH1}" FontWeight="Bold" Margin="0,0,0,16" />
|
|
|
|
<Border Grid.Row="1" Background="{StaticResource BgSurfaceBrush}" CornerRadius="{StaticResource RadiusLg}"
|
|
BorderBrush="{StaticResource BorderBrush}" BorderThickness="1" Padding="20">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="100" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="12" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="12" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="12" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="12" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Style="{StaticResource FieldLabel}" Text="项目名称 *" />
|
|
<TextBox x:Name="NameBox" Grid.Column="1" />
|
|
|
|
<TextBlock Grid.Row="2" Style="{StaticResource FieldLabel}" Text="设备编号" />
|
|
<TextBox x:Name="SerialBox" Grid.Row="2" Grid.Column="1" FontFamily="{StaticResource FontMono}" />
|
|
|
|
<TextBlock Grid.Row="4" Style="{StaticResource FieldLabel}" Text="设备名称" />
|
|
<TextBox x:Name="ProductNameBox" Grid.Row="4" Grid.Column="1" FontFamily="{StaticResource FontMono}" />
|
|
|
|
<TextBlock Grid.Row="6" Style="{StaticResource FieldLabel}" Text="设备型号" />
|
|
<TextBox x:Name="ModelBox" Grid.Row="6" Grid.Column="1" FontFamily="{StaticResource FontMono}" />
|
|
|
|
<TextBlock Grid.Row="8" Style="{StaticResource FieldLabel}" Text="测试人员" />
|
|
<TextBox x:Name="TesterBox" Grid.Row="8" Grid.Column="1" />
|
|
</Grid>
|
|
</Border>
|
|
|
|
<StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,16,0,0">
|
|
<Button Content="取消" Width="80" Margin="0,0,8,0" IsCancel="True" Click="Cancel_Click" />
|
|
<Button Style="{StaticResource PrimaryButton}" Content="创建" Width="80" IsDefault="True" Click="Ok_Click" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window>
|