终端一体化运控平台
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

107 rader
4.6 KiB

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