终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

118 lines
4.8 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.MorkSUpgradedVer.View.Debug"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.MorkSUpgradedVer.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.MorkSUpgradedVer.ViewModel"
  9. Name="调试界面"
  10. d:DesignHeight="450"
  11. d:DesignWidth="800"
  12. mc:Ignorable="d">
  13. <UserControl.DataContext>
  14. <vm:DebugViewModel />
  15. </UserControl.DataContext>
  16. <UserControl.Resources>
  17. <Style x:Key="TextboxStyle" TargetType="TextBox">
  18. <Setter Property="FontSize" Value="18" />
  19. <Setter Property="Background" Value="Transparent" />
  20. <Setter Property="Foreground" Value="{StaticResource TitleBorderColor}" />
  21. <Setter Property="Width" Value="150" />
  22. <Setter Property="BorderBrush" Value="{StaticResource TitleBorderColor}" />
  23. <Setter Property="BorderThickness" Value="1" />
  24. <Setter Property="CaretBrush" Value="Aqua" />
  25. </Style>
  26. <Style x:Key="CheckBox" TargetType="CheckBox">
  27. <Setter Property="Foreground" Value="Aqua" />
  28. <Setter Property="FontSize" Value="16" />
  29. <Setter Property="Background" Value="Transparent" />
  30. <Setter Property="VerticalAlignment" Value="Center" />
  31. <Setter Property="HorizontalAlignment" Value="Center" />
  32. <Setter Property="Margin" Value="10,0" />
  33. <Setter Property="IsChecked" Value="False" />
  34. </Style>
  35. </UserControl.Resources>
  36. <Grid Margin="20">
  37. <Grid.RowDefinitions>
  38. <RowDefinition />
  39. <RowDefinition />
  40. </Grid.RowDefinitions>
  41. <StackPanel>
  42. <StackPanel Margin="10,0,0,20" Orientation="Horizontal">
  43. <TextBlock
  44. FontSize="18"
  45. Foreground="{StaticResource TitleBorderColor}"
  46. Text="面条位置:" />
  47. <TextBox Style="{StaticResource TextboxStyle}" Text="{Binding NoodleLoc}" />
  48. <CheckBox
  49. Background="White"
  50. Content="随机面条位置"
  51. IsChecked="{Binding IsNoodPositon}"
  52. Style="{StaticResource CheckBox}" />
  53. </StackPanel>
  54. <StackPanel Margin="10,0,0,20" Orientation="Horizontal">
  55. <TextBlock
  56. FontSize="18"
  57. Foreground="{StaticResource TitleBorderColor}"
  58. Text="面碗位置:" />
  59. <TextBox Style="{StaticResource TextboxStyle}" Text="{Binding BowlLoc}" />
  60. <CheckBox
  61. Background="White"
  62. Content="随机面碗位置"
  63. IsChecked="{Binding IsBowPositon}"
  64. Style="{StaticResource CheckBox}" />
  65. <CheckBox
  66. Background="White"
  67. Command="{Binding EnableLacalSimOrder}"
  68. Content="启用本地模拟功能"
  69. IsChecked="{Binding LocalSimOrder}"
  70. Style="{StaticResource CheckBox}" />
  71. </StackPanel>
  72. <StackPanel Orientation="Horizontal">
  73. <Button
  74. Grid.Row="0"
  75. Width="170"
  76. HorizontalAlignment="Left"
  77. Command="{Binding SimOrderRandomCommand}"
  78. Content="启动随机模拟订单"
  79. Style="{StaticResource ButtonStyle}"
  80. Visibility="{Binding VisibilitySimOrder}" />
  81. <Button
  82. Grid.Row="0"
  83. Width="170"
  84. HorizontalAlignment="Left"
  85. Command="{Binding SimOrderRandomCloseCommand}"
  86. Content="关闭随机模拟订单"
  87. Style="{StaticResource ButtonStyle}"
  88. Visibility="{Binding VisibilitySimOrder}" />
  89. <Button
  90. Grid.Row="0"
  91. Width="130"
  92. HorizontalAlignment="Left"
  93. Command="{Binding SimOrderCommand}"
  94. Content="模拟订单"
  95. Style="{StaticResource ButtonStyle}"
  96. Visibility="{Binding VisibilitySimOrder}" />
  97. <Button
  98. Grid.Row="0"
  99. Width="120"
  100. HorizontalAlignment="Left"
  101. Command="{Binding InitCommand}"
  102. Content="初始化设备"
  103. Style="{StaticResource ButtonStyle}" />
  104. </StackPanel>
  105. </StackPanel>
  106. </Grid>
  107. </UserControl>