You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
134 lines
12 KiB
134 lines
12 KiB
<UserControl x:Class="Gumming.ReSetView"
|
|
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"
|
|
mc:Ignorable="d"
|
|
xmlns:local="clr-namespace:Gumming"
|
|
xmlns:tool="clr-namespace:GummingCommon;assembly=GummingCommon"
|
|
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
|
|
d:DesignHeight="700" d:DesignWidth="1000"
|
|
Background="Transparent"
|
|
x:Name="rootControl">
|
|
<UserControl.Resources>
|
|
<tool:RadioButtonConverter x:Key="RadioConverter"/>
|
|
<tool:BooleanToOpacityConverter x:Key="OpacityConverter"/>
|
|
<tool:EditorTextConverter x:Key="TextBrushConverter"/>
|
|
<tool:EditorBorderConverter x:Key="BorderBrushConverter"/>
|
|
<tool:PathTypeToThemeConverter x:Key="PathTypeConverter"/>
|
|
<tool:StepStyleConverter x:Key="StepStyleConverter"/>
|
|
<tool:IniStyleConverter x:Key="IniStyleConverter"/>
|
|
</UserControl.Resources>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="60"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="520"></RowDefinition>
|
|
<RowDefinition Height="30"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid Grid.Row="0">
|
|
<Border Grid.Column="0" BorderThickness="0" BorderBrush="{DynamicResource DefaultBorderBrush}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
<ColumnDefinition></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Button Margin="8" FontSize="15" Style="{Binding Path=GlobalStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding GlobalStatus}" Command="{Binding GlobalCommand}" Content="全部初始化"></Button>
|
|
<Button Grid.Column="1" Margin="8" FontSize="15" Style="{Binding Path=RobotStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding RobotStatus}" Command="{Binding RobotCommand}" Content="机器人初始化"></Button>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
<Grid Grid.Row="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid Grid.Column="0" Margin="5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Button Grid.Row="0" Grid.Column="6" Margin="2" FontSize="15" Style="{Binding Path=COT1InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding COT1InitStatus}" Command="{Binding COT1InitCommand}" Content="SC1初始化"></Button>
|
|
<Button Grid.Row="2" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=COT2InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding COT2InitStatus}" Command="{Binding COT2InitCommand}" Content="SC2初始化"></Button>
|
|
<Button Grid.Row="4" Grid.Column="6" Margin="2" FontSize="15" Style="{Binding Path=COT3InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding COT3InitStatus}" Command="{Binding COT3InitCommand}" Content="SC3初始化"></Button>
|
|
<Button Grid.Row="6" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=COT4InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding COT4InitStatus}" Command="{Binding COT4InitCommand}" Content="SC4初始化"></Button>
|
|
<Button Grid.Row="8" Grid.Column="4" Margin="2" FontSize="15" Style="{Binding Path=DEV1InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding DEV1InitStatus}" Command="{Binding DEV1InitCommand}" Content="AD1初始化"></Button>
|
|
<Button Grid.Row="10" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=DEV2InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding DEV2InitStatus}" Command="{Binding DEV2InitCommand}" Content="AD2初始化"></Button>
|
|
<Button Grid.Row="12" Grid.Column="4" Margin="2" FontSize="15" Style="{Binding Path=DEV3InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding DEV3InitStatus}" Command="{Binding DEV3InitCommand}" Content="AD3初始化"></Button>
|
|
<Button Grid.Row="14" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=DEV4InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding DEV4InitStatus}" Command="{Binding DEV4InitCommand}" Content="AD4初始化"></Button>
|
|
</Grid>
|
|
<Grid Grid.Column="1" Margin="5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Button Grid.Row="0" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=HP1InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding HP1InitStatus}" Command="{Binding HP1InitCommand}" Content="HP1初始化"></Button>
|
|
<Button Grid.Row="2" Grid.Column="4" Margin="2" FontSize="15" Style="{Binding Path=HP2InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding HP2InitStatus}" Command="{Binding HP2InitCommand}" Content="HP2初始化"></Button>
|
|
<Button Grid.Row="4" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=HP3InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding HP3InitStatus}" Command="{Binding HP3InitCommand}" Content="HP3初始化"></Button>
|
|
<Button Grid.Row="6" Grid.Column="4" Margin="2" FontSize="15" Style="{Binding Path=HP4InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding HP4InitStatus}" Command="{Binding HP4InitCommand}" Content="HP4初始化"></Button>
|
|
<!--<Button Grid.Row="8" Grid.Column="6" Margin="2" FontSize="15" Style="{Binding Path=HP5InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding HP5InitStatus}" Command="{Binding HP5InitCommand}" Content="HP5初始化"></Button>
|
|
<Button Grid.Row="10" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=HP6InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding HP6InitStatus}" Command="{Binding HP6InitCommand}" Content="HP6初始化"></Button>-->
|
|
|
|
</Grid>
|
|
<Grid Grid.Column="2" Margin="5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="10"></RowDefinition>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Button Grid.Row="0" Grid.Column="4" Margin="2" FontSize="15" Style="{Binding Path=CP1InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding CP1InitStatus}" Command="{Binding CP1InitCommand}" Content="CP1初始化"></Button>
|
|
<Button Grid.Row="2" Grid.Column="6" Margin="2" FontSize="15" Style="{Binding Path=CP2InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding CP2InitStatus}" Command="{Binding CP2InitCommand}" Content="CP2初始化"></Button>
|
|
<Button Grid.Row="4" Grid.Column="4" Margin="2" FontSize="15" Style="{Binding Path=CP3InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding CP3InitStatus}" Command="{Binding CP3InitCommand}" Content="CP3初始化"></Button>
|
|
<Button Grid.Row="6" Grid.Column="6" Margin="2" FontSize="15" Style="{Binding Path=CP4InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding CP4InitStatus}" Command="{Binding CP4InitCommand}" Content="CP4初始化"></Button>
|
|
<Button Grid.Row="8" Grid.Column="4" Margin="2" FontSize="15" Style="{Binding Path=CP5InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding CP5InitStatus}" Command="{Binding CP5InitCommand}" Content="CP5初始化"></Button>
|
|
<Button Grid.Row="10" Grid.Column="6" Margin="2" FontSize="15" Style="{Binding Path=CP6InitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding CP6InitStatus}" Command="{Binding CP6InitCommand}" Content="CP6初始化"></Button>
|
|
</Grid>
|
|
<Grid Grid.Column="3" Margin="5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Button Grid.Row="0" Grid.Column="2" Margin="2" FontSize="15" Style="{Binding Path=CAInitStatus,Converter={StaticResource IniStyleConverter}}" Tag="{Binding CAInitStatus}" Command="{Binding CAInitCommand}" Content="CA初始化"></Button>
|
|
</Grid>
|
|
</Grid>
|
|
<TextBlock Grid.Row="3" Text="{Binding StepMessage}" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<ScrollViewer Grid.Row="4" >
|
|
<TextBlock Text="{Binding DetailMessage}" HorizontalAlignment="Left" VerticalAlignment="Top" TextWrapping="Wrap" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.CanContentScroll="True" Margin="2" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</UserControl>
|