终端一体化运控平台
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

155 righe
6.4 KiB

  1. <UserControl
  2. x:Class="BPASmartClient.MorkMV1.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.MorkMV1.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.MorkMV1.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. <CheckBox
  48. VerticalContentAlignment="Center"
  49. Background="White"
  50. Content="1"
  51. IsChecked="{Binding NoodleLoc[0]}"
  52. Style="{StaticResource CheckBox}" />
  53. <CheckBox
  54. VerticalContentAlignment="Center"
  55. Background="White"
  56. Content="2"
  57. IsChecked="{Binding NoodleLoc[1]}"
  58. Style="{StaticResource CheckBox}" />
  59. <CheckBox
  60. VerticalContentAlignment="Center"
  61. Background="White"
  62. Content="3"
  63. IsChecked="{Binding NoodleLoc[2]}"
  64. Style="{StaticResource CheckBox}" />
  65. <CheckBox
  66. VerticalContentAlignment="Center"
  67. Background="White"
  68. Content="4"
  69. IsChecked="{Binding NoodleLoc[3]}"
  70. Style="{StaticResource CheckBox}" />
  71. <CheckBox
  72. VerticalContentAlignment="Center"
  73. Background="White"
  74. Content="5"
  75. IsChecked="{Binding NoodleLoc[4]}"
  76. Style="{StaticResource CheckBox}" />
  77. <CheckBox
  78. Margin="20,0"
  79. VerticalContentAlignment="Center"
  80. Background="White"
  81. Content="随机素材位置"
  82. IsChecked="{Binding IsNoodPositon}"
  83. Style="{StaticResource CheckBox}" />
  84. <TextBlock
  85. FontSize="18"
  86. Foreground="{StaticResource TitleBorderColor}"
  87. Text="素材份量:" />
  88. <TextBox Style="{StaticResource TextboxStyle}" Text="{Binding MaterialCount}" />
  89. </StackPanel>
  90. <StackPanel Margin="10,0,0,20" Orientation="Horizontal">
  91. <TextBlock
  92. FontSize="18"
  93. Foreground="{StaticResource TitleBorderColor}"
  94. Text="面碗位置:" />
  95. <TextBox Style="{StaticResource TextboxStyle}" Text="{Binding BowlLoc}" />
  96. <CheckBox
  97. VerticalContentAlignment="Center"
  98. Background="White"
  99. Content="随机面碗位置"
  100. IsChecked="{Binding IsBowPositon}"
  101. Style="{StaticResource CheckBox}" />
  102. <CheckBox
  103. VerticalContentAlignment="Center"
  104. Background="White"
  105. Command="{Binding EnableLacalSimOrder}"
  106. Content="启用本地模拟功能"
  107. IsChecked="{Binding LocalSimOrder}"
  108. Style="{StaticResource CheckBox}" />
  109. </StackPanel>
  110. <StackPanel Orientation="Horizontal">
  111. <Button
  112. Grid.Row="0"
  113. Width="170"
  114. HorizontalAlignment="Left"
  115. Command="{Binding SimOrderRandomCommand}"
  116. Content="启动随机模拟订单"
  117. Style="{StaticResource ButtonStyle}"
  118. Visibility="{Binding VisibilitySimOrder}" />
  119. <Button
  120. Grid.Row="0"
  121. Width="170"
  122. HorizontalAlignment="Left"
  123. Command="{Binding SimOrderRandomCloseCommand}"
  124. Content="关闭随机模拟订单"
  125. Style="{StaticResource ButtonStyle}"
  126. Visibility="{Binding VisibilitySimOrder}" />
  127. <Button
  128. Grid.Row="0"
  129. Width="130"
  130. HorizontalAlignment="Left"
  131. Command="{Binding SimOrderCommand}"
  132. Content="模拟订单"
  133. Style="{StaticResource ButtonStyle}"
  134. Visibility="{Binding VisibilitySimOrder}" />
  135. <Button
  136. Grid.Row="0"
  137. Width="120"
  138. HorizontalAlignment="Left"
  139. Command="{Binding InitCommand}"
  140. Content="初始化设备"
  141. Style="{StaticResource ButtonStyle}" />
  142. </StackPanel>
  143. </StackPanel>
  144. </Grid>
  145. </UserControl>