终端一体化运控平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

120 行
5.2 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.MorkSVer3.View.DebugView"
  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.MorkSVer3.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.MorkSVer3.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 Orientation="Vertical">
  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. VerticalContentAlignment="Center"
  50. Background="White"
  51. Content="随机面条份量"
  52. IsChecked="{Binding IsNoodPositon}"
  53. Style="{StaticResource CheckBox}" />
  54. <TextBlock
  55. FontSize="18"
  56. Foreground="{StaticResource TitleBorderColor}"
  57. Text="(1:小份,2:中份,3:大份)" />
  58. </StackPanel>
  59. <StackPanel Margin="10,0,0,20" Orientation="Horizontal">
  60. <TextBlock
  61. FontSize="18"
  62. Foreground="{StaticResource TitleBorderColor}"
  63. Text="面碗位置:" />
  64. <TextBox Style="{StaticResource TextboxStyle}" Text="{Binding BowlLoc}" />
  65. <CheckBox
  66. VerticalContentAlignment="Center"
  67. Background="White"
  68. Content="随机面碗位置"
  69. IsChecked="{Binding IsBowPositon}"
  70. Style="{StaticResource CheckBox}" />
  71. <CheckBox
  72. VerticalContentAlignment="Center"
  73. Background="White"
  74. Command="{Binding EnableLacalSimOrder}"
  75. Content="启用本地模拟功能"
  76. IsChecked="{Binding LocalSimOrder}"
  77. Style="{StaticResource CheckBox}" />
  78. </StackPanel>
  79. <StackPanel Orientation="Horizontal">
  80. <Button
  81. Grid.Row="0"
  82. Width="170"
  83. HorizontalAlignment="Left"
  84. Command="{Binding SimOrderRandomCommand}"
  85. Content="启动随机模拟订单"
  86. Style="{StaticResource ButtonStyle}"
  87. Visibility="{Binding VisibilitySimOrder}" />
  88. <Button
  89. Grid.Row="0"
  90. Width="170"
  91. HorizontalAlignment="Left"
  92. Command="{Binding SimOrderRandomCloseCommand}"
  93. Content="关闭随机模拟订单"
  94. Style="{StaticResource ButtonStyle}"
  95. Visibility="{Binding VisibilitySimOrder}" />
  96. <Button
  97. Grid.Row="0"
  98. Width="130"
  99. HorizontalAlignment="Left"
  100. Command="{Binding SimOrderCommand}"
  101. Content="模拟订单"
  102. Style="{StaticResource ButtonStyle}"
  103. Visibility="{Binding VisibilitySimOrder}" />
  104. <Button
  105. Grid.Row="0"
  106. Width="120"
  107. HorizontalAlignment="Left"
  108. Command="{Binding InitCommand}"
  109. Content="初始化设备"
  110. Style="{StaticResource ButtonStyle}" />
  111. </StackPanel>
  112. </StackPanel>
  113. </Grid>
  114. </UserControl>