RecipeControl.xaml 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <UserControl x:Class="CyberX8_Themes.UserControls.RecipeControl"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:converters="clr-namespace:CyberX8_Themes.Converters"
  7. xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
  8. xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
  9. xmlns:local="clr-namespace:CyberX8_Themes.UserControls"
  10. mc:Ignorable="d" x:Name="self"
  11. d:DesignHeight="350" d:DesignWidth="520">
  12. <UserControl.Resources>
  13. <converters:RecipeIconConverter x:Key="recipeIconConverter"/>
  14. <converters:BoolToInverseBoolConverter x:Key="BoolToInverseBoolConverter" />
  15. </UserControl.Resources>
  16. <GroupBox
  17. Header="{Binding ModuleTitle, ElementName=self}"
  18. BorderBrush="DarkGray">
  19. <Grid>
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="20"></RowDefinition>
  22. <RowDefinition Height="50"></RowDefinition>
  23. <RowDefinition Height="30"></RowDefinition>
  24. <RowDefinition Height="30"></RowDefinition>
  25. <RowDefinition Height="50"></RowDefinition>
  26. <RowDefinition Height="50"></RowDefinition>
  27. <RowDefinition Height="50"></RowDefinition>
  28. <RowDefinition Height="50"></RowDefinition>
  29. <RowDefinition Height="20"></RowDefinition>
  30. <RowDefinition/>
  31. </Grid.RowDefinitions>
  32. <Grid.ColumnDefinitions>
  33. <ColumnDefinition Width="310"></ColumnDefinition>
  34. <ColumnDefinition Width="100"></ColumnDefinition>
  35. <ColumnDefinition Width="100"></ColumnDefinition>
  36. <ColumnDefinition/>
  37. </Grid.ColumnDefinitions>
  38. <Button Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Style="{StaticResource SysBtnStyle}" Content="Run" Height="35" Width="140"
  39. Click="RunRecipe_Click" IsEnabled="{Binding ElementName=self,Path=LoadEnabled}"/>
  40. <Label Grid.Row="2" Grid.RowSpan="2" Grid.Column="1" Height="40" FontSize="14" FontWeight="Bold" Content="Cycle" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center" />
  41. <Border Grid.Row="2" Grid.Column="2" Margin="10,0,20,0" Background="Black" Height="22" Width="30">
  42. <TextBlock Text="{Binding ElementName=self,Path=AchievedCycleTimes}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Left"/>
  43. </Border>
  44. <Control:IntegerTextBox Grid.Row="3" Grid.Column="2" Margin="10,0,20,0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="15" FontWeight="Bold" Height="22" Width="30"
  45. Value="{Binding ElementName=self,Path=InputCycleTimes,Mode=TwoWay}"
  46. TextboxName="InputCycleTimes"
  47. />
  48. <Button Grid.Row="6" Grid.Column="1" Grid.ColumnSpan="2" Style="{StaticResource SysBtnStyle}" Content="Abort" Height="35" Width="140" Click="Abort_Click" IsEnabled="{Binding ElementName=self,Path=LoadEnabled}"/>
  49. <Button Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="2" Style="{StaticResource SysBtnStyle}" Content="Edit" Height="35" Width="140" Click="Edit_Click" IsEnabled="{Binding ElementName=self,Path=LoadEnabled}"/>
  50. <local:RecipeLoadControl Grid.Row="0" Grid.RowSpan="9"
  51. RecipeType="{Binding ElementName=self,Path=RecipeType}"
  52. SelectedRecipeNode="{Binding ElementName=self,Path=SelectedRecipeNode,Mode=TwoWay}"
  53. IsEngineeringMode ="{Binding ElementName=self,Path=IsEngineering,Mode=TwoWay}"
  54. IsProductionMode ="{Binding ElementName=self,Path=IsProduction,Mode=TwoWay}"
  55. />
  56. </Grid>
  57. </GroupBox>
  58. </UserControl>