|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322 |
- <UserControl x:Class="BPASmartClient.MorkT.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.MorkT.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="384*"/>
- <RowDefinition Height="111*"/>
- <RowDefinition Height="5*"/>
- </Grid.RowDefinitions>
-
- <GroupBox Grid.ColumnSpan="2" Visibility="Collapsed"
- 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"/>
- <TextBlock Text="机器人自嗨时间间隔:"/>
- <TextBox Text="{Binding TimeInterval}" Width="40" Margin="10,0,5,0"/>
- <TextBlock Text="分"/>
- </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="60"
- Command="{Binding Button_RobotControlCommand}"
- CommandParameter="机器人启动" Cursor="Hand">
- </Button>
- <Button Content="启动示教"
- Margin="20,5" Width="150" Height="60"
- Command="{Binding Button_RobotControlCommand}"
- CommandParameter="启动示教"/>
- <Button Content="停止示教"
- Margin="20,5" Width="150" Height="60"
- Command="{Binding Button_RobotControlCommand}"
- CommandParameter="停止示教"/>
- <Button Content="机器人急停"
- Margin="20,5" Width="110" Height="60"
- Command="{Binding Button_RobotControlCommand}"
- CommandParameter="机器人急停"/>
-
- <!--<Button Content="机器人回原点"
- Margin="20,5" Width="110" Height="60"
- Command="{Binding Button_GoToHomeCommand}"
- CommandParameter="机器人急停">-->
- <!--</Button>-->
-
- </ListBox>
- </Grid>
- </GroupBox>
- <GroupBox Grid.Row="0"
- FontFamily="楷体"
- FontSize="20"
- Header=" 冰淇淋机器 ">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="30"/>
- <RowDefinition Height="10*" />
- <RowDefinition Height="10*"/>
- </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="40,5" Height="50" Width="170"
- Content="制作" />
- </StackPanel>
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal" Height="70">
- <TextBlock >模式</TextBlock>
- <ComboBox Width="100" Height="40" FontSize="22"
- Margin="20,0"
- ItemsSource="{Binding IceCreamModes}"
- SelectedItem="{Binding SelecteIceCreamdMode}" />
- <Button Command="{Binding Button_SetIceCreamModelCommand}"
- Margin="20,0" Height="50" Width="150"
- Content="设置" />
- </StackPanel>
- </StackPanel>
- </Grid>
- </GroupBox>
- <!--<GroupBox Grid.Row="2" Grid.Column="0"
- FontSize="20" FontFamily="楷体"
- Header="单片机冰淇淋" >
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="5*"/>
- </Grid.RowDefinitions>
- <TextBlock Text="连接状态" />
- <TextBlock Text="{Binding SCChipIsConnect}"
- Margin="120,0,0,0"/>
- <TextBlock Grid.Row="1" Text="单片机控制" 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="咖啡杯落杯" Height="40" Width="120"
- Command="{Binding Button_CupControlCommand}"
- CommandParameter="CUP_COFFEE"
- Margin="10,10,50,10" Cursor="Hand"/>
- <Button Content="冰淇淋杯落杯" Height="40" Width="120"
- Command="{Binding Button_CupControlCommand}"
- CommandParameter="CUP_ICECREAM" Margin="10,10,50,10"
- />
- <Button Content="单片机冰淇淋制冷" Height="40" Width="120"
- Command="{Binding Button_SCChipRefrigerationCommand}" Cursor="Hand"
- Margin="10,10,50,10"
- />
- <Button Content="单片机冰淇淋打料" Height="40" Width="120" Margin="10,10,50,10"
- Command="{Binding Button_SCChipDischargeCommand}" Cursor="Hand" />
- <Button Content="单片机冰淇淋模拟" Height="40" Width="120"
- Command="{Binding Button_SCChipTestCommand}" Cursor="Hand"
- Margin="10,10,50,10"/>
-
- </ListBox>
- </Grid>
- </GroupBox>-->
-
- <GroupBox Grid.Row="0" 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 />
- </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 AppStatus}" 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 Warning}" />
- <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 CaffeeFault}" Height="22" Width="60" />
- </Grid>
- <StackPanel Grid.Row="2" Orientation="Vertical">
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal" Height="60">
- <TextBlock>饮品</TextBlock>
- <ComboBox Margin="10,0" Height="40" FontSize="20"
- Width="120"
- ItemsSource="{Binding Coffees}"
- SelectedItem="{Binding SelectedCoffee}" />
- <Button Margin="10,0" Height="40" Width="120"
- Command="{}"
- Content="制作"/>
- <Button Margin="10,0" Height="40" Width="120"
- Command="{}"
- Content="停止制作" Cursor="Hand"/>
- </StackPanel>
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal" Height="60">
- <TextBlock>模式</TextBlock>
- <ComboBox Margin="10,0" Height="40" Width="120" FontSize="20"
- ItemsSource="{Binding CoffeeCmds}"
- SelectedItem="{Binding SelectedCoffeeCmd}"/>
- <Button Margin="10,0" Height="40" Width="120"
- Command="{}"
- Content="设置" Cursor="Hand"/>
- </StackPanel>
- </StackPanel>
- </Grid>
- </GroupBox>
- <GroupBox Header="单片机控制"
- FontSize="18"
- Grid.Row="1" Grid.ColumnSpan="2"
- Margin="0,0,0,10" HorizontalAlignment="Left" Width="1000">
- <StackPanel Orientation="Horizontal"
- VerticalAlignment="Center" >
- <Button Content="咖啡杯落杯" Height="40" Width="170"
- Command="{Binding Button_CupControlCommand}"
- CommandParameter="CUP_COFFEE"
- Margin="10,10,50,10" Cursor="Hand"/>
- <Button Content="冰淇淋杯落杯" Height="40" Width="170"
- Command="{Binding Button_CupControlCommand}"
- CommandParameter="CUP_ICECREAM" Margin="10,10,50,10"
- />
-
- </StackPanel>
- </GroupBox>
-
- </Grid>
- </UserControl>
|