packServer/desktop/Views/AddChannelWindow.xaml

43 lines
2.7 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<Window x:Class="YuncangTrace.LocalService.AddChannelWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="添加通道"
Height="420" Width="460"
ResizeMode="NoResize"
WindowStartupLocation="CenterOwner"
Background="{StaticResource BgBrush}"
FontFamily="Microsoft YaHei UI, Segoe UI"
FontSize="13">
<Border Background="White" BorderBrush="{StaticResource LineBrush}" BorderThickness="1"
CornerRadius="10" Margin="18" Padding="18">
<DockPanel>
<TextBlock DockPanel.Dock="Top" Text="添加扫码通道" FontSize="15" FontWeight="SemiBold" />
<TextBlock x:Name="DeviceText" DockPanel.Dock="Top" FontSize="12"
Foreground="{StaticResource MutedBrush}" Margin="0,4,0,12" TextWrapping="Wrap" />
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,14,0,0">
<Button Content="取消" Padding="14,5" IsCancel="True" Click="Cancel_Click" />
<Button Content="添加" Padding="14,5" Margin="8,0,0,0" IsDefault="True"
Background="{StaticResource BrandBrush}" Foreground="White" BorderThickness="0"
Cursor="Hand" Click="Ok_Click" />
</StackPanel>
<StackPanel>
<TextBlock Text="通道号" FontWeight="SemiBold" Margin="0,0,0,4" />
<ComboBox x:Name="NumberBox" DisplayMemberPath="Label" Height="28" Padding="6,3" />
<TextBlock Text="通道号是现场认工位的号,删掉的号不会被自动复用;已占用的号会标注占用者"
FontSize="12" Foreground="{StaticResource MutedBrush}" Margin="0,4,0,14" TextWrapping="Wrap" />
<TextBlock Text="设备名" FontWeight="SemiBold" Margin="0,0,0,4" />
<TextBox x:Name="NameBox" Height="28" Padding="6,3" VerticalContentAlignment="Center"
MaxLength="32" />
<TextBlock Text="会写入设备本身(HostName)并落盘,设备面板和其他上位机看到的都是这个名字;留空则用设备自报名"
FontSize="12" Foreground="{StaticResource MutedBrush}" Margin="0,4,0,14" TextWrapping="Wrap" />
<TextBlock x:Name="HintText" FontSize="12" Foreground="{StaticResource MutedBrush}"
TextWrapping="Wrap" Text="添加时会先检查并确保设备上有给中控用的 TCP 服务(桌面端自己的条目与端口,不占 Android 那个)" />
</StackPanel>
</DockPanel>
</Border>
</Window>