VpwRecipeView.xaml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. <UserControl x:Class="PunkHPX8_MainPages.Views.VpwRecipeView"
  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:local="clr-namespace:PunkHPX8_MainPages.Views"
  7. xmlns:prism="http://prismlibrary.com/"
  8. xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
  9. xmlns:converters="clr-namespace:PunkHPX8_MainPages.Converters"
  10. xmlns:UserControls="clr-namespace:PunkHPX8_Themes.UserControls;assembly=PunkHPX8_Themes"
  11. xmlns:wfi ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
  12. xmlns:extendedControls="clr-namespace:MECF.Framework.UI.Core.ExtendedControls;assembly=MECF.Framework.UI.Core"
  13. xmlns:wf ="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
  14. prism:ViewModelLocator.AutoWireViewModel="True"
  15. mc:Ignorable="d"
  16. d:DesignHeight="800" d:DesignWidth="1800" Loaded="UserControl_Loaded">
  17. <UserControl.Resources>
  18. <converters:BoolReverseConverter x:Key="boolReverseConverter"/>
  19. <converters:BoolVisibilityConverter x:Key="boolVisibilityConverter"/>
  20. </UserControl.Resources>
  21. <Grid>
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="100"></RowDefinition>
  24. <RowDefinition Height="210"></RowDefinition>
  25. <RowDefinition Height="*"/>
  26. </Grid.RowDefinitions>
  27. <Grid.ColumnDefinitions>
  28. <ColumnDefinition Width="50"></ColumnDefinition>
  29. <ColumnDefinition Width="400"></ColumnDefinition>
  30. <ColumnDefinition></ColumnDefinition>
  31. </Grid.ColumnDefinitions>
  32. <UserControls:RecipeFileLoadControl Grid.Row="1" Grid.RowSpan="2" Grid.Column="1" Title="VPW Recipe" RecipeNodes="{Binding RecipeNodes}" OperationCommand="{Binding OperationCommand}"
  33. RecipeLocation="{Binding CurrentNode.RecipeLocation}" EditEnable="{Binding EditEnable}" CreateEnable="{Binding CreateEnable}" RecipeFileName="{Binding CurrentNode.FileName}"
  34. CreateCommand="{Binding CreateCommand}" EditCommand="{Binding EditCommand}"/>
  35. <Grid Grid.Row="1" Grid.Column="2" Margin="10 0 0 0">
  36. <Grid.RowDefinitions>
  37. <RowDefinition Height="70"></RowDefinition>
  38. <RowDefinition Height="70"></RowDefinition>
  39. <RowDefinition Height="70"></RowDefinition>
  40. <RowDefinition/>
  41. </Grid.RowDefinitions>
  42. <Grid.ColumnDefinitions>
  43. <ColumnDefinition Width="220"></ColumnDefinition>
  44. <ColumnDefinition Width="220"></ColumnDefinition>
  45. <ColumnDefinition Width="220"></ColumnDefinition>
  46. <ColumnDefinition Width="220"></ColumnDefinition>
  47. <ColumnDefinition Width="220"></ColumnDefinition>
  48. </Grid.ColumnDefinitions>
  49. <GroupBox Header="PPID" Grid.Row="0" Grid.ColumnSpan="3">
  50. <TextBlock Text="{Binding Recipe.Ppid}" FontSize="20" VerticalAlignment="Center" TextAlignment="Center">
  51. </TextBlock>
  52. </GroupBox>
  53. <Grid Grid.Row="0" Grid.Column="3" Grid.ColumnSpan="2" Margin="10 0 0 0 ">
  54. <Grid.RowDefinitions>
  55. <RowDefinition Height="70"></RowDefinition>
  56. </Grid.RowDefinitions>
  57. <Grid Grid.Row="0" >
  58. <Grid.ColumnDefinitions>
  59. <ColumnDefinition/>
  60. <ColumnDefinition/>
  61. <ColumnDefinition/>
  62. </Grid.ColumnDefinitions>
  63. <Button Grid.Column="0" IsEnabled="{Binding Enable}" Style="{StaticResource SysBtnStyle}" Content="Save" Height="35" Width="100" Command="{Binding SaveRecipeCommand}"></Button>
  64. <Button Grid.Column="1" Style="{StaticResource SysBtnStyle}" Content="SaveAs" Height="35" Width="100" Command="{Binding SaveAsRecipeCommand}"></Button>
  65. </Grid>
  66. </Grid>
  67. <GroupBox Header="Description" Grid.Row="1" Grid.ColumnSpan="3">
  68. <TextBlock Text="{Binding Recipe.Description}" FontSize="18" VerticalAlignment="Center" TextAlignment="Center">
  69. </TextBlock>
  70. </GroupBox>
  71. <GroupBox Header="Author" Grid.Row="2" Grid.Column="0">
  72. <Label Content="{Binding Recipe.Author}" Height="30" Width="195" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" Background="Gray"
  73. HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Column="1" Margin="6,0,0,0"></Label>
  74. </GroupBox>
  75. <GroupBox Header="CreateDate" Grid.Row="2" Grid.Column="1">
  76. <Label Content="{Binding Recipe.CreateDate}" Height="30" Width="195" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" Background="Gray"
  77. HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Column="1" Margin="6,0,0,0"></Label>
  78. </GroupBox>
  79. <GroupBox Header="SaveDate" Grid.Row="2" Grid.Column="2">
  80. <Label Content="{Binding Recipe.SaveDate}" Height="30" Width="195" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" Background="Gray"
  81. HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Column="1" Margin="6,0,0,0"></Label>
  82. </GroupBox>
  83. <GroupBox Header="Total TIme" IsEnabled="{Binding Enable}" Grid.Row="2" Grid.Column="3">
  84. <Label Content="{Binding Recipe.TotalTime}" Height="30" Width="195" VerticalAlignment="Center" HorizontalAlignment="Left" Foreground="White" Background="Gray"
  85. HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Grid.Column="1" Margin="6,0,0,0"></Label>
  86. </GroupBox>
  87. <GroupBox Header="Wafer Size" IsEnabled="{Binding Enable}" Grid.Row="2" Grid.Column="4">
  88. <ComboBox Height="30" Margin="0,0,20,0" ItemsSource="{Binding WaferSizeLst}" SelectedItem="{Binding Recipe.WaferSize, Mode=TwoWay}">
  89. </ComboBox>
  90. </GroupBox>
  91. </Grid>
  92. <Grid Grid.Row="2" Grid.Column="2">
  93. <Grid.RowDefinitions>
  94. <RowDefinition Height="200"></RowDefinition>
  95. <RowDefinition Height="*"></RowDefinition>
  96. </Grid.RowDefinitions>
  97. <Grid.ColumnDefinitions>
  98. <ColumnDefinition Width="350"></ColumnDefinition>
  99. <ColumnDefinition Width="350"></ColumnDefinition>
  100. <ColumnDefinition Width="350"></ColumnDefinition>
  101. <ColumnDefinition Width="350"></ColumnDefinition>
  102. </Grid.ColumnDefinitions>
  103. <GroupBox Header="1.Vacuum Prewet" Grid.Column="3" Padding="10" Grid.Row="0" Grid.RowSpan="2">
  104. <Grid>
  105. <Grid.RowDefinitions>
  106. <RowDefinition Height="75"></RowDefinition>
  107. <RowDefinition Height="75"></RowDefinition>
  108. <RowDefinition Height="45"></RowDefinition>
  109. <RowDefinition Height="45"></RowDefinition>
  110. <RowDefinition Height="45"></RowDefinition>
  111. <RowDefinition Height="45"></RowDefinition>
  112. <RowDefinition Height="200"></RowDefinition>
  113. </Grid.RowDefinitions>
  114. <Grid.ColumnDefinitions>
  115. <ColumnDefinition Width="300"></ColumnDefinition>
  116. </Grid.ColumnDefinitions>
  117. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Add Below" Height="25" Width="80" FontSize="10" Command="{Binding AddBelowCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,-150,-20,0"></Button>
  118. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Add Above" Height="25" Width="80" FontSize="10" Command="{Binding AddAboveCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,-80,-20,0"></Button>
  119. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Move Up" Height="25" Width="80" FontSize="10" Command="{Binding MoveUpCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,-10,-20,0"></Button>
  120. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Move Down" Height="25" Width="80" FontSize="10" Command="{Binding MoveDownCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,60,-20,0"></Button>
  121. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Delete" Height="25" Width="80" FontSize="10" Command="{Binding DeleteCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,130,-20,0"></Button>
  122. <UserControls:GroupTextBoxControl Grid.Row="0" Title="Vacuum Target" Unit="Toor" MinValue="0" MaxValue="200" Width="300"
  123. IntValue="{Binding Recipe.VacuumTarget,Mode=TwoWay}"
  124. ValidResult="{Binding PropertyValidResultDic[VacuumTarget],Mode=TwoWay}" />
  125. <UserControls:GroupTextBoxControl Grid.Row="1" Title="Dry Hold Time" Unit="Sec" MinValue="0" MaxValue="800" Width="300"
  126. IntValue="{Binding Recipe.DryHoldTime,Mode=TwoWay}"
  127. ValidResult="{Binding PropertyValidResultDic[DryHoldTime],Mode=TwoWay}" />
  128. <GroupBox Grid.Row="2" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  129. <Grid>
  130. <Label Content="Spray Bar" Height="30" VerticalAlignment="Top" />
  131. <RadioButton Content="EXT" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  132. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.IsSprayBarRetract ,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="158,-1,0,-6" ></RadioButton>
  133. <RadioButton Content="RET" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  134. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.IsSprayBarRetract,Mode=TwoWay}" Margin="220,-1,0,-6" ></RadioButton>
  135. </Grid>
  136. </GroupBox>
  137. <GroupBox Grid.Row="3" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  138. <Grid>
  139. <Label Content="Drip Enable" Height="30" VerticalAlignment="Top" />
  140. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  141. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VacuumPrewetDripEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  142. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  143. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VacuumPrewetDripEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  144. </Grid>
  145. </GroupBox>
  146. <GroupBox Grid.Row="4" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  147. <Grid>
  148. <Label Content="Small Enable" Height="30" VerticalAlignment="Top" />
  149. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  150. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VacuumPrewetSmallEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  151. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  152. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VacuumPrewetSmallEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  153. </Grid>
  154. </GroupBox>
  155. <GroupBox Grid.Row="5" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  156. <Grid>
  157. <Label Content="Large" Height="30" VerticalAlignment="Top" />
  158. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  159. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VacuumPrewetLargeEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  160. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  161. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VacuumPrewetLargeEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  162. </Grid>
  163. </GroupBox>
  164. <DataGrid x:Name="VacuumPrewetRinseGrid" Width="215" MinRowHeight="27" Grid.Row="6" AutoGenerateColumns="False" CanUserAddRows="False" FontFamily="Arial" FontSize="14" Margin="-70,10,0,0"
  165. ItemsSource="{Binding Recipe.VacuumRinseStep}" SelectionMode="Single" IsEnabled="{Binding Enable}" SelectedIndex="{Binding SelectedVacuumPrewetIndex,Mode=TwoWay}"
  166. ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto">
  167. <DataGrid.Resources>
  168. <extendedControls:BindingProxy x:Key="DataShowProxy" Data="{Binding}" />
  169. </DataGrid.Resources>
  170. <DataGrid.Columns>
  171. <DataGridTextColumn Header="Step" IsReadOnly="True" Width="50" Binding="{Binding Step,Mode=TwoWay}" CanUserSort="false" CanUserReorder="False" CanUserResize="False"/>
  172. <DataGridTextColumn Header="Time(sec)" Width="80" Binding="{Binding DurationSeconds,Mode=TwoWay}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" >
  173. </DataGridTextColumn>
  174. <DataGridTextColumn Header="Speed(rpm)" Width="85" Binding="{Binding RotationSpeed,Mode=TwoWay}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" />
  175. </DataGrid.Columns>
  176. </DataGrid>
  177. </Grid>
  178. </GroupBox>
  179. <GroupBox Header="0.Prewet Prepare" Grid.Column="0" Padding="10" Grid.Row="0">
  180. <Grid>
  181. <Grid.RowDefinitions>
  182. <RowDefinition Height="45"></RowDefinition>
  183. <RowDefinition Height="75"></RowDefinition>
  184. </Grid.RowDefinitions>
  185. <Grid.ColumnDefinitions>
  186. <ColumnDefinition Width="58.205"></ColumnDefinition>
  187. <ColumnDefinition Width="241.795"/>
  188. </Grid.ColumnDefinitions>
  189. <UserControls:GroupTextBoxControl Grid.Row="1" Title="DIW Loop DO" Unit="ppm" MinValue="0" MaxValue="10" Width="300"
  190. IntValue="{Binding Recipe.DiwLoopDoSet,Mode=TwoWay}"
  191. ValidResult="{Binding PropertyValidResultDic[DiwLoopDoSet],Mode=TwoWay}" Grid.ColumnSpan="2" />
  192. <GroupBox Grid.Row="0" IsEnabled="{Binding Enable}" Margin="0,10,0,0" Grid.ColumnSpan="2">
  193. <Grid>
  194. <Label Content="Purge Enable" Height="30" VerticalAlignment="Top" />
  195. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  196. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.PurgeEnable,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  197. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  198. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.PurgeEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  199. </Grid>
  200. </GroupBox>
  201. </Grid>
  202. </GroupBox>
  203. <GroupBox Header="4.Spin Off" Grid.Column="0" Padding="10" Grid.Row="1">
  204. <Grid>
  205. <Grid.RowDefinitions>
  206. <RowDefinition Height="75"></RowDefinition>
  207. <RowDefinition Height="75"></RowDefinition>
  208. </Grid.RowDefinitions>
  209. <Grid.ColumnDefinitions>
  210. <ColumnDefinition Width="58.205"></ColumnDefinition>
  211. <ColumnDefinition Width="241.795"/>
  212. </Grid.ColumnDefinitions>
  213. <UserControls:GroupTextBoxControl Grid.Row="0" Title="Spin Speed" Unit="rpm" MinValue="0" MaxValue="1000" Width="300"
  214. IntValue="{Binding Recipe.SpinSpeed,Mode=TwoWay}"
  215. ValidResult="{Binding PropertyValidResultDic[SpinSpeed],Mode=TwoWay}" Grid.ColumnSpan="2" />
  216. <UserControls:GroupTextBoxControl Grid.Row="1" Title="Spin Time" Unit="sec" MinValue="0" MaxValue="10" Width="300"
  217. IntValue="{Binding Recipe.SpinTime,Mode=TwoWay}"
  218. ValidResult="{Binding PropertyValidResultDic[SpinTime],Mode=TwoWay}" Grid.ColumnSpan="2" />
  219. </Grid>
  220. </GroupBox>
  221. <GroupBox Header="2.Vent Prewet" Grid.Column="1" Padding="10" Grid.Row="0" Grid.RowSpan="2">
  222. <Grid>
  223. <Grid.RowDefinitions>
  224. <RowDefinition Height="45"></RowDefinition>
  225. <RowDefinition Height="45"></RowDefinition>
  226. <RowDefinition Height="45"></RowDefinition>
  227. <RowDefinition Height="200"></RowDefinition>
  228. </Grid.RowDefinitions>
  229. <Grid.ColumnDefinitions>
  230. <ColumnDefinition Width="300"></ColumnDefinition>
  231. </Grid.ColumnDefinitions>
  232. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Add Below" Height="25" Width="80" FontSize="10" Command="{Binding VentPrewetAddBelowCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,-150,-20,0"></Button>
  233. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Add Above" Height="25" Width="80" FontSize="10" Command="{Binding VentPrewetAddAboveCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,-80,-20,0"></Button>
  234. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Move Up" Height="25" Width="80" FontSize="10" Command="{Binding VentPrewetMoveUpCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,-10,-20,0"></Button>
  235. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Move Down" Height="25" Width="80" FontSize="10" Command="{Binding VentPrewetMoveDownCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,60,-20,0"></Button>
  236. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Delete" Height="25" Width="80" FontSize="10" Command="{Binding VentPrewetDeleteCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,130,-20,0"></Button>
  237. <GroupBox Grid.Row="0" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  238. <Grid>
  239. <Label Content="Drip Enable" Height="30" VerticalAlignment="Top" />
  240. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  241. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VentPrewetDripEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  242. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  243. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VentPrewetDripEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  244. </Grid>
  245. </GroupBox>
  246. <GroupBox Grid.Row="1" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  247. <Grid>
  248. <Label Content="Small Enable" Height="30" VerticalAlignment="Top" />
  249. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  250. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VentPrewetSmallEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  251. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  252. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VentPrewetSmallEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  253. </Grid>
  254. </GroupBox>
  255. <GroupBox Grid.Row="2" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  256. <Grid>
  257. <Label Content="Large" Height="30" VerticalAlignment="Top" />
  258. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  259. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.VentPrewetLargeEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  260. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  261. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.VentPrewetLargeEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  262. </Grid>
  263. </GroupBox>
  264. <DataGrid x:Name="VentPrewetRinseGrid" Width="215" MinRowHeight="27" Grid.Row="6" AutoGenerateColumns="False" CanUserAddRows="False" FontFamily="Arial" FontSize="14" Margin="-70,10,0,0"
  265. ItemsSource="{Binding Recipe.VentRinseStep}" SelectionMode="Single" IsEnabled="{Binding Enable}" SelectedIndex="{Binding SelectedVentPrewetIndex,Mode=TwoWay}"
  266. ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto" >
  267. <DataGrid.Resources>
  268. <extendedControls:BindingProxy x:Key="DataShowProxy" Data="{Binding}" />
  269. </DataGrid.Resources>
  270. <DataGrid.Columns>
  271. <DataGridTextColumn Header="Step" Width="50" IsReadOnly="True" Binding="{Binding Step,Mode=TwoWay}" CanUserSort="false" CanUserReorder="False" CanUserResize="False"/>
  272. <DataGridTextColumn Header="Time(sec)" Width="80" Binding="{Binding DurationSeconds,Mode=TwoWay}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" >
  273. </DataGridTextColumn>
  274. <DataGridTextColumn Header="Speed(rpm)" Width="85" Binding="{Binding RotationSpeed,Mode=TwoWay}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" />
  275. </DataGrid.Columns>
  276. </DataGrid>
  277. </Grid>
  278. </GroupBox>
  279. <GroupBox Header="3.Extend Clean" Grid.Column="2" Padding="10" Grid.Row="0" Grid.RowSpan="2">
  280. <Grid>
  281. <Grid.RowDefinitions>
  282. <RowDefinition Height="45"></RowDefinition>
  283. <RowDefinition Height="45"></RowDefinition>
  284. <RowDefinition Height="45"></RowDefinition>
  285. <RowDefinition Height="200"></RowDefinition>
  286. </Grid.RowDefinitions>
  287. <Grid.ColumnDefinitions>
  288. <ColumnDefinition Width="300"></ColumnDefinition>
  289. </Grid.ColumnDefinitions>
  290. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Add Below" Height="25" Width="80" FontSize="10" Command="{Binding ExtendCleanAddBelowCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,-150,-20,0"></Button>
  291. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Add Above" Height="25" Width="80" FontSize="10" Command="{Binding ExtendCleanAddAboveCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,-80,-20,0"></Button>
  292. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Move Up" Height="25" Width="80" FontSize="10" Command="{Binding ExtendCleanMoveUpCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,-10,-20,0"></Button>
  293. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Move Down" Height="25" Width="80" FontSize="10" Command="{Binding ExtendCleanMoveDownCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,60,-20,0"></Button>
  294. <Button Grid.Row="6" Style="{StaticResource SysBtnStyle}" IsEnabled="{Binding Enable}" Content="Delete" Height="25" Width="80" FontSize="10" Command="{Binding ExtendCleanDeleteCommand}" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,130,-20,0"></Button>
  295. <GroupBox Grid.Row="0" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  296. <Grid>
  297. <Label Content="Drip Enable" Height="30" VerticalAlignment="Top" />
  298. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  299. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.ExtendCleanDripEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  300. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  301. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.ExtendCleanDripEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  302. </Grid>
  303. </GroupBox>
  304. <GroupBox Grid.Row="1" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  305. <Grid>
  306. <Label Content="Small Enable" Height="30" VerticalAlignment="Top" />
  307. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  308. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.ExtendCleanSmallEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  309. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  310. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.ExtendCleanSmallEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  311. </Grid>
  312. </GroupBox>
  313. <GroupBox Grid.Row="2" IsEnabled="{Binding Enable}" Margin="0,10,0,0">
  314. <Grid>
  315. <Label Content="Large" Height="30" VerticalAlignment="Top" />
  316. <RadioButton Content="True" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  317. Command="{Binding AutoCurrentBasedFalseCommand}" IsChecked="{Binding Recipe.ExtendCleanLargeEnable ,Mode=TwoWay}" Margin="158,-1,0,-6" ></RadioButton>
  318. <RadioButton Content="False" Height="30" Width="60" VerticalContentAlignment="Center" HorizontalAlignment="Center"
  319. Command="{Binding AutoCurrentBasedTrueCommand}" IsChecked="{Binding Recipe.ExtendCleanLargeEnable,Mode=TwoWay,Converter={StaticResource boolReverseConverter}}" Margin="220,-1,0,-6" ></RadioButton>
  320. </Grid>
  321. </GroupBox>
  322. <DataGrid x:Name="ExtendCleanRinseGrid" Width="215" MinRowHeight="27" Grid.Row="6" AutoGenerateColumns="False" CanUserAddRows="False" FontFamily="Arial" FontSize="14" Margin="-70,10,0,0"
  323. ItemsSource="{Binding Recipe.ExtendCleanRinseStep}" SelectionMode="Single" IsEnabled="{Binding Enable}" SelectedIndex="{Binding SelectedExtendCleanIndex,Mode=TwoWay}"
  324. ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto">
  325. <DataGrid.Resources>
  326. <extendedControls:BindingProxy x:Key="DataShowProxy" Data="{Binding}" />
  327. </DataGrid.Resources>
  328. <DataGrid.Columns>
  329. <DataGridTextColumn Header="Step" Width="50" IsReadOnly="True" Binding="{Binding Step,Mode=TwoWay}" CanUserSort="false" CanUserReorder="False" CanUserResize="False"/>
  330. <DataGridTextColumn Header="Time(sec)" Width="80" Binding="{Binding DurationSeconds,Mode=TwoWay}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" >
  331. </DataGridTextColumn>
  332. <DataGridTextColumn Header="Speed(rpm)" Width="85" Binding="{Binding RotationSpeed,Mode=TwoWay}" CanUserSort="false" CanUserReorder="False" CanUserResize="False" />
  333. </DataGrid.Columns>
  334. </DataGrid>
  335. </Grid>
  336. </GroupBox>
  337. </Grid>
  338. </Grid>
  339. </UserControl>