|
- <UserControl x:Class="BPASmartClient.MorkTHQ.View.DebugView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:vm ="clr-namespace:BPASmartClient.MorkTHQ.ViewModel"
- mc:Ignorable="d"
- Name="调试界面"
- d:DesignHeight="500" d:DesignWidth="1000" Unloaded="Dubug_Unloaded">
- <UserControl.DataContext>
- <vm:DebugViewModel />
- </UserControl.DataContext>
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
- <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="10*"/>
- <ColumnDefinition Width="10*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="14*"/>
- <RowDefinition Height="10*"/>
- <RowDefinition Height="20*"/>
- </Grid.RowDefinitions>
-
- <GroupBox Grid.ColumnSpan="2"
- FontFamily="楷体"
- FontSize="20"
- Header=" 乐白机器人 ">
- <Grid Margin="10">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="3*"/>
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="连接状态" />
- <TextBlock Text="{Binding RobotConnected}"
- Margin="40,0"/>
- <TextBlock Text="机器人模式:"/>
- <TextBlock Text="{Binding RobotMode}"
- Margin="40,0"/>
- </StackPanel>
- <TextBlock Text="连接状态" />
- <TextBlock Text="{Binding RobotConnected}"
- Margin="120,0,0,0"/>
- <TextBlock Text="乐白机器人控制"
- Grid.Row="1"
- VerticalAlignment="Center" HorizontalAlignment="Center"/>
- <ListBox Grid.Row="2" Background="Transparent">
- <ListBox.Template>
- <ControlTemplate TargetType="{x:Type ListBox}">
- <ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
- <WrapPanel Orientation="Horizontal" IsItemsHost="True" ScrollViewer.CanContentScroll="True"/>
- </ScrollViewer>
- </ControlTemplate>
- </ListBox.Template>
- <Button Content="机器人启动"
- Margin="20,5" Width="150" Height="40"
- Command="{Binding Button_RobotControlCommand}"
- CommandParameter="机器人启动">
- </Button>
- <Button Content="启动示教"
- Margin="20,5" Width="150" Height="40"
- Command="{Binding Button_RobotControlCommand}"
- CommandParameter="启动示教"/>
- <Button Content="停止示教"
- Margin="20,5" Width="150" Height="40"
- Command="{Binding Button_RobotControlCommand}"
- CommandParameter="停止示教"/>
- <Button Content="机器人急停"
- Margin="20,5" Width="110" Height="40"
- Command="{Binding Button_RobotControlCommand}"
- CommandParameter="机器人急停"/>
-
- </ListBox>
- </Grid>
- </GroupBox>
- <GroupBox Grid.Row="2"
- FontFamily="楷体"
- FontSize="20"
- Header=" 冰淇淋机器 ">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="30"/>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBlock Text="连接状态" />
- <TextBlock Text="{Binding IceCreamConnected}"
- Margin="120,0,0,0"/>
- <Grid Grid.Row="1">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="80" />
- <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="2" Orientation="Vertical">
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>冰淇淋</TextBlock>
- <Button Command="{Binding Button_MakeIceCreamCommand}"
- Margin="20,0"
- Content="制作" />
- </StackPanel>
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>模式</TextBlock>
- <ComboBox Width="100"
- Margin="20,0"
- ItemsSource="{Binding IceCreamModes}"
- SelectedItem="{Binding SelecteIceCreamdMode}" />
- <Button Command="{Binding Button_SetIceCreamModelCommand}"
- Margin="20,0"
- Content="设置" />
- </StackPanel>
- </StackPanel>
- </Grid>
- </GroupBox>
-
-
- <GroupBox Grid.Row="2" Grid.Column="1"
- FontFamily="楷体"
- FontSize="20"
- Header=" 咖啡机">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="30"/>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBlock Text="连接状态" />
- <TextBlock Text="{Binding CoffeeConnected}"
- Margin="120,0,0,0"/>
- <Grid Grid.Row="1">
- <Grid.Resources>
- <Style TargetType="TextBlock">
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
- </Grid.Resources>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="99" />
- <ColumnDefinition Width="140" />
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="171" />
- </Grid.ColumnDefinitions>
- <TextBlock Height="23" Width="100" FontSize="18" HorizontalAlignment="Center">咖啡机状态</TextBlock>
- <TextBlock FontSize="18"
- Grid.Column="1"
- Text="{Binding CoffeeStatus}" Height="23" />
- <TextBlock Grid.Column="2" Height="23" Width="80" FontSize="18">制作任务</TextBlock>
- <TextBlock FontSize="18"
- Grid.Column="3"
- Text="{Binding CoffeeAppStatus}" Height="23"/>
- <TextBlock Grid.Row="1" Grid.Column="0" Height="22" Width="80" FontSize="18">告警信息</TextBlock>
- <TextBlock FontSize="15"
- Grid.Row="1"
- Grid.Column="1"
- Text="{Binding CoffeeWarning}" />
- <TextBlock Grid.Row="1" Grid.Column="2" Height="22" Width="80" FontSize="18">保养信息</TextBlock>
- <TextBlock FontSize="18"
- Grid.Row="1"
- Grid.Column="3"
- Text="{Binding CoffeeFault}" Height="22" Width="60" />
- <TextBlock Text="制作进度" Grid.Row="2"/>
- <TextBlock Grid.Row="2" Grid.Column="1"
- Text="{Binding Coffeeprogress}"/>
- </Grid>
- <StackPanel Grid.Row="2" Orientation="Vertical">
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>饮品</TextBlock>
- <ComboBox Margin="10,0"
- Width="100"
- ItemsSource="{Binding Coffees}"
- SelectedItem="{Binding SelectedCoffee}" />
- <Button Margin="10,0"
- Command="{}"
- Content="制作"/>
- <Button Margin="10,0"
- Command="{}"
- Content="停止制作"/>
- </StackPanel>
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal"/>
- </StackPanel>
- </Grid>
- </GroupBox>
- <GroupBox Header="果汁机" Margin="10"
- FontSize="18"
- Grid.Row="1" Grid.ColumnSpan="2"
- HorizontalAlignment="Left" >
- <Grid>
- <Grid.ColumnDefinitions >
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="连接状态" />
- <TextBlock Text="{Binding JuiceIsConnect}"
- Margin="120,0,0,0"/>
- <StackPanel Orientation="Horizontal" Grid.Column="1">
- <TextBlock Text="果汁:" Margin="10"/>
- <TextBlock Text="{Binding JuiceIsConnect}"/>
- <ComboBox Margin="10,0"
- Width="100" FontSize="16"
- ItemsSource="{Binding Juice}"
- SelectedItem="{Binding SelectedJuice}"
- IsReadOnly="True"/>
- <ComboBox Margin="10,0"
- Width="49" FontSize="16"
- ItemsSource="{Binding Temperature}"
- SelectedItem="{Binding SelectedTemperature}"
- IsReadOnly="True"/>
- <Button Margin="10,0"
- Command="{Binding MakeJuiceCommand}"
- Content="制作"/>
-
- </StackPanel>
- </Grid>
- </GroupBox>
-
- </Grid>
- </UserControl>
|