|
- <UserControl
- x:Class="HBLConsole.Debug.Debug_MORKIC"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:HBLConsole.Debug"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:s="https://github.com/canton7/Stylet"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
- <UserControl.DataContext>
- <local:ViewModel_MORKIC x:Name="vmode" />
- </UserControl.DataContext>
-
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="Style.xaml" />
- <ResourceDictionary>
- <!--#region 按钮样式-->
- <Style x:Key="ButtonStyle" TargetType="Button">
- <Setter Property="Foreground" Value="#00c2f4" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Width" Value="100" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border
- Name="TitleBarBr"
- Background="Transparent"
- BorderBrush="#00c2f4"
- BorderThickness="2"
- CornerRadius="10">
- <ContentPresenter
- Margin="{TemplateBinding Margin}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="TitleBarBr" Property="Background" Value="#3300c2f4" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
- </ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
-
- <Grid>
- <Grid.Resources>
- <Style TargetType="TextBlock">
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
- </Grid.Resources>
-
-
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <!--#region 乐百机器人控制-->
- <GroupBox
- BorderBrush="#3aa7f3"
- BorderThickness="2"
- FontFamily="楷体"
- FontSize="20"
- Foreground="Aqua"
- Header=" 乐百机器人控制 "
- Style="{DynamicResource GroupBoxStyle1}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="50" />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <Button
- Width="130"
- Margin="10,0,10,0"
- Command="{Binding bql}"
- Content="冰淇淋模拟"
- Style="{StaticResource ButtonStyle}" />
-
- <Button
- Width="130"
- Margin="10,0,10,0"
- Command="{Binding bql}"
- Content="冰淇淋模拟"
- Style="{StaticResource ButtonStyle}" />
- </StackPanel>
- <StackPanel Grid.Row="1" Margin="0,10,0,0" Orientation="Vertical">
- <Grid HorizontalAlignment="Left">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="100"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="100"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="100"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <TextBlock>机器人连接状态</TextBlock>
- <TextBlock Margin="10,0,0,0" Grid.Column="1" Text="{Binding RobotConnected}"></TextBlock>
-
- <TextBlock Grid.Column="2">冰淇淋机连接状态</TextBlock>
- <TextBlock Margin="10,0,0,0" Grid.Column="3" Text="{Binding IceCreamConnected}"></TextBlock>
-
- <TextBlock Grid.Column="4">咖啡机连接状态</TextBlock>
- <TextBlock Margin="10,0,0,0" Grid.Column="5" Text="{Binding CoffeeConnected}"></TextBlock>
- </Grid>
- </StackPanel>
- </Grid>
- </GroupBox>
- <!--#endregion-->
-
-
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <!--#region 冰淇淋机-->
- <GroupBox
- BorderBrush="#3aa7f3"
- BorderThickness="2"
- FontFamily="楷体"
- FontSize="20"
- Foreground="Aqua"
- Header=" 冰淇淋控制 "
- Style="{DynamicResource GroupBoxStyle1}">
- <Grid>
-
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="0.5*"/>
- </Grid.RowDefinitions>
-
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <StackPanel HorizontalAlignment="Right">
- <TextBlock Text="预冷温度:" />
- <TextBlock Text="环境温度:" />
- <TextBlock HorizontalAlignment="Right" Text="电流:" />
- <TextBlock HorizontalAlignment="Right" Text="成型比:" />
- <TextBlock HorizontalAlignment="Right" Text="打料完成:" />
- </StackPanel>
-
- <StackPanel Grid.Column="1" Margin="10,0,0,0">
- <TextBlock Text="{Binding YLWD}" />
- <TextBlock Text="{Binding HJWD}" />
- <TextBlock Text="{Binding DL}" />
- <TextBlock Text="{Binding CXB}" />
- <TextBlock Text="{Binding DLCompleted}" />
- </StackPanel>
-
- <StackPanel Grid.Column="2" HorizontalAlignment="Right">
- <TextBlock Text="回气温度:" />
- <TextBlock Text="当前模式:" />
- <TextBlock HorizontalAlignment="Right" Text="电压:" />
- <TextBlock HorizontalAlignment="Right" Text="故障:" />
- </StackPanel>
-
-
- <StackPanel Grid.Column="3" Margin="10,0,0,0">
- <TextBlock Text="{Binding YLWD}" />
- <TextBlock Text="{Binding HQWD}" />
- <TextBlock Text="{Binding HJWD}" />
- <TextBlock Text="{Binding YLWD}" />
- </StackPanel>
-
- </Grid>
-
- <Grid Grid.Row="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="50" />
- </Grid.RowDefinitions>
-
- <StackPanel Margin="5,5" Orientation="Horizontal">
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action MakeIceCream}"
- Content="开始制作"
- Style="{StaticResource ButtonStyle}" />
-
- <ComboBox
- Width="150"
- Margin="5"
- ItemsSource="{Binding IceCreamModes}"
- SelectedItem="{Binding SelecteIceCreamdMode}" />
-
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action SetIceCreamModel}"
- Content="设置模式"
- Style="{StaticResource ButtonStyle}" />
- </StackPanel>
-
- </Grid>
-
- <!--<Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="100" />
- </Grid.ColumnDefinitions>
-
- <TextBlock Grid.Row="0" Grid.Column="0">预冷温度</TextBlock>
- <TextBlock
- Grid.Row="0"
- Grid.Column="1"
- Text="{Binding YLWD}" />
- <TextBlock Grid.Row="0" Grid.Column="2">回气温度</TextBlock>
- <TextBlock
- Grid.Row="0"
- Grid.Column="3"
- Text="{Binding HQWD}" />
-
- <TextBlock Grid.Row="1" Grid.Column="0">环境温度</TextBlock>
- <TextBlock
- Grid.Row="1"
- Grid.Column="1"
- Text="{Binding HJWD}" />
- <TextBlock Grid.Row="1" Grid.Column="2">当前模式</TextBlock>
- <TextBlock
- Grid.Row="1"
- Grid.Column="3"
- Text="{Binding CurrentMode}" />
-
- <TextBlock Grid.Row="2" Grid.Column="0">电流</TextBlock>
- <TextBlock
- Grid.Row="2"
- Grid.Column="1"
- Text="{Binding DL}" />
- <TextBlock Grid.Row="2" Grid.Column="2">电压</TextBlock>
- <TextBlock
- Grid.Row="2"
- Grid.Column="3"
- Text="{Binding DY}" />
-
- <TextBlock Grid.Row="3" Grid.Column="0">成型比</TextBlock>
- <TextBlock
- Grid.Row="3"
- Grid.Column="1"
- Text="{Binding CXB}" />
- <TextBlock Grid.Row="3" Grid.Column="2">故障</TextBlock>
- <TextBlock
- Grid.Row="3"
- Grid.Column="3"
- Text="{Binding IceCreamFault}" />
- </Grid>
- <StackPanel Grid.Row="1" Orientation="Vertical">
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>饮品</TextBlock>
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action MakeIceCream}"
- Content="制作" />
- </StackPanel>
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>模式</TextBlock>
- <ComboBox
- Width="100"
- ItemsSource="{Binding IceCreamModes}"
- SelectedItem="{Binding SelecteIceCreamdMode}" />
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action SetIceCreamModel}"
- Content="设置" />
- </StackPanel>
- </StackPanel>-->
- </Grid>
- </GroupBox>
- <!--#endregion-->
-
- <!--#region 咖啡机-->
- <GroupBox
- Grid.Column="1"
- BorderBrush="#3aa7f3"
- BorderThickness="2"
- FontFamily="楷体"
- FontSize="20"
- Foreground="Aqua"
- Header=" 咖啡机控制 "
- Style="{DynamicResource GroupBoxStyle1}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid>
- <Grid.Resources>
- <Style TargetType="TextBlock">
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
- </Grid.Resources>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="150" />
- </Grid.ColumnDefinitions>
- <TextBlock Grid.Row="0" Grid.Column="0">咖啡机状态</TextBlock>
- <TextBlock
- Grid.Row="0"
- Grid.Column="1"
- Text="{Binding CoffeeStatus}" />
- <TextBlock Grid.Row="0" Grid.Column="2">应用状态</TextBlock>
- <TextBlock
- Grid.Row="0"
- Grid.Column="3"
- Text="{Binding AppStatus}" />
- <TextBlock Grid.Row="1" Grid.Column="0">告警信息</TextBlock>
- <TextBlock
- Grid.Row="1"
- Grid.Column="1"
- Text="{Binding Warning}" />
- <TextBlock Grid.Row="1" Grid.Column="2">故障信息</TextBlock>
- <TextBlock
- Grid.Row="1"
- Grid.Column="3"
- Text="{Binding CaffeeFault}" />
- </Grid>
- <StackPanel Grid.Row="1" Orientation="Vertical">
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>饮品</TextBlock>
- <ComboBox
- Width="100"
- ItemsSource="{Binding Coffees}"
- SelectedItem="{Binding SelectedCoffee}" />
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action MakeCoffee}"
- Content="制作" />
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action StopMakeCoffee}"
- Content="停止制作" />
- </StackPanel>
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>模式</TextBlock>
- <ComboBox
- Width="100"
- ItemsSource="{Binding CoffeeCmds}"
- SelectedItem="{Binding SelectedCoffeeCmd}" />
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action SetCoffeeModel}"
- Content="设置" />
- </StackPanel>
- </StackPanel>
- </Grid>
- </GroupBox>
- <!--#endregion-->
- </Grid>
-
-
- <!--<GroupBox
- Grid.Row="1"
- Grid.Column="0"
- Header="冰淇淋机">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="100" />
- </Grid.ColumnDefinitions>
- <TextBlock Grid.Row="0" Grid.Column="0">预冷温度</TextBlock>
- <TextBlock
- Grid.Row="0"
- Grid.Column="1"
- Text="{Binding YLWD}" />
- <TextBlock Grid.Row="0" Grid.Column="2">回气温度</TextBlock>
- <TextBlock
- Grid.Row="0"
- Grid.Column="3"
- Text="{Binding HQWD}" />
-
- <TextBlock Grid.Row="1" Grid.Column="0">环境温度</TextBlock>
- <TextBlock
- Grid.Row="1"
- Grid.Column="1"
- Text="{Binding HJWD}" />
- <TextBlock Grid.Row="1" Grid.Column="2">当前模式</TextBlock>
- <TextBlock
- Grid.Row="1"
- Grid.Column="3"
- Text="{Binding CurrentMode}" />
-
- <TextBlock Grid.Row="2" Grid.Column="0">电流</TextBlock>
- <TextBlock
- Grid.Row="2"
- Grid.Column="1"
- Text="{Binding DL}" />
- <TextBlock Grid.Row="2" Grid.Column="2">电压</TextBlock>
- <TextBlock
- Grid.Row="2"
- Grid.Column="3"
- Text="{Binding DY}" />
-
- <TextBlock Grid.Row="3" Grid.Column="0">成型比</TextBlock>
- <TextBlock
- Grid.Row="3"
- Grid.Column="1"
- Text="{Binding CXB}" />
- <TextBlock Grid.Row="3" Grid.Column="2">故障</TextBlock>
- <TextBlock
- Grid.Row="3"
- Grid.Column="3"
- Text="{Binding IceCreamFault}" />
- </Grid>
- <StackPanel Grid.Row="1" Orientation="Vertical">
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>饮品</TextBlock>
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action MakeIceCream}"
- Content="制作" />
- </StackPanel>
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>模式</TextBlock>
- <ComboBox
- Width="100"
- ItemsSource="{Binding IceCreamModes}"
- SelectedItem="{Binding SelecteIceCreamdMode}" />
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action SetIceCreamModel}"
- Content="设置" />
- </StackPanel>
- </StackPanel>
- </Grid>
- </GroupBox>-->
- <!--<GroupBox
- Grid.Row="1"
- Grid.Column="1"
- Header="咖啡机">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid>
- <Grid.Resources>
- <Style TargetType="TextBlock">
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
- </Grid.Resources>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="150" />
- </Grid.ColumnDefinitions>
- <TextBlock Grid.Row="0" Grid.Column="0">咖啡机状态</TextBlock>
- <TextBlock
- Grid.Row="0"
- Grid.Column="1"
- Text="{Binding CoffeeStatus}" />
- <TextBlock Grid.Row="0" Grid.Column="2">应用状态</TextBlock>
- <TextBlock
- Grid.Row="0"
- Grid.Column="3"
- Text="{Binding AppStatus}" />
- <TextBlock Grid.Row="1" Grid.Column="0">告警信息</TextBlock>
- <TextBlock
- Grid.Row="1"
- Grid.Column="1"
- Text="{Binding Warning}" />
- <TextBlock Grid.Row="1" Grid.Column="2">故障信息</TextBlock>
- <TextBlock
- Grid.Row="1"
- Grid.Column="3"
- Text="{Binding CaffeeFault}" />
- </Grid>
- <StackPanel Grid.Row="1" Orientation="Vertical">
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>饮品</TextBlock>
- <ComboBox
- Width="100"
- ItemsSource="{Binding Coffees}"
- SelectedItem="{Binding SelectedCoffee}" />
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action MakeCoffee}"
- Content="制作" />
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action StopMakeCoffee}"
- Content="停止制作" />
- </StackPanel>
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>模式</TextBlock>
- <ComboBox
- Width="100"
- ItemsSource="{Binding CoffeeCmds}"
- SelectedItem="{Binding SelectedCoffeeCmd}" />
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action SetCoffeeModel}"
- Content="设置" />
- </StackPanel>
- </StackPanel>
- </Grid>
-
- </GroupBox>-->
- </Grid>
- </UserControl>
|