20230201_145_upperpc/InSituLaboratory/Views/Pages/Dialogs/ModifySysDevicesView.xaml

33 lines
2.0 KiB
Plaintext
Raw Normal View History

<UserControl x:Class="InSituLaboratory.Views.Pages.Dialogs.ModifySysDevicesView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:InSituLaboratory.Views.Pages.Dialogs"
mc:Ignorable="d" Height="330" Width="420"
FontFamily="{StaticResource DigitalDisplay}"
Template="{StaticResource DialogViewTemplate}">
<Grid Margin="40,20" TextBlock.Foreground="#888" FocusManager.FocusedElement="{Binding ElementName=pb}">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="130"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Text="设备代码" VerticalAlignment="Center"/>
<TextBlock Text="设备名称" Grid.Row="1" VerticalAlignment="Center"/>
<TextBlock Text="最小工作时长/min" Grid.Row="2" VerticalAlignment="Center"/>
<TextBlock Text="单次工作最大时长/min" Grid.Row="3" VerticalAlignment="Center"/>
<TextBox Grid.Column="1" Height="30" Name="pb" Style="{StaticResource NormalTextBoxStyle}" Text="{Binding SysDevice.DeviceType}"/>
<TextBox Grid.Column="1" Grid.Row="1" Height="30" Style="{StaticResource NormalTextBoxStyle}" Text="{Binding SysDevice.DeviceName}"/>
<TextBox Grid.Column="1" Grid.Row="2" Height="30" Style="{StaticResource NormalTextBoxStyle}" Text="{Binding SysDevice.MinWorkTime}"/>
<TextBox Grid.Column="1" Grid.Row="3" Height="30" Style="{StaticResource NormalTextBoxStyle}" Text="{Binding SysDevice.WorkTime}"/>
</Grid>
</UserControl>