BoatRobotView.xaml 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  1. <UserControl x:Class="FurnaceUI.Views.Maintenances.BoatRobotView"
  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:FurnaceUI.Views.Maintenances"
  7. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  8. xmlns:cal="http://www.caliburn.org"
  9. xmlns:controls="http://OpenSEMI.Ctrlib.com/presentation"
  10. xmlns:deviceControl="clr-namespace:Aitex.Core.UI.DeviceControl;assembly=MECF.Framework.UI.Core" xmlns:parts="clr-namespace:FurnaceUI.Controls.Parts"
  11. mc:Ignorable="d"
  12. Width="1280" Height="900"
  13. >
  14. <Grid>
  15. <Canvas IsEnabled="{Binding IsPermission}">
  16. <Grid Margin="10,10,0,0">
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="24"/>
  19. <RowDefinition Height="35"/>
  20. <RowDefinition Height="35"/>
  21. <RowDefinition Height="35"/>
  22. <RowDefinition Height="35"/>
  23. <RowDefinition Height="35"/>
  24. <RowDefinition Height="35"/>
  25. <RowDefinition Height="35"/>
  26. <RowDefinition Height="35"/>
  27. <RowDefinition Height="35"/>
  28. <RowDefinition Height="35"/>
  29. <RowDefinition Height="35"/>
  30. <RowDefinition Height="115"/>
  31. </Grid.RowDefinitions>
  32. <Grid.ColumnDefinitions>
  33. <ColumnDefinition Width="110"/>
  34. <ColumnDefinition Width="80"/>
  35. <ColumnDefinition Width="110"/>
  36. <ColumnDefinition Width="180"/>
  37. </Grid.ColumnDefinitions>
  38. <Label Style="{DynamicResource Table_TitleStyle}" Grid.Row="0" Grid.ColumnSpan="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  39. <Label.Content>
  40. <TextBlock Text="Boat E Axis Information" Foreground="White"></TextBlock>
  41. </Label.Content>
  42. </Label>
  43. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.Column="0" Padding="10,1,0,1">
  44. <TextBlock Text="Status" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  45. </Border>
  46. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="1" Padding="5,1">
  47. <TextBlock Text="{Binding BoatZAxisStatus}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  48. </Border>
  49. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.Column="2" Padding="10,1,0,1">
  50. <TextBlock Text="Servo On/Off" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  51. </Border>
  52. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="3" Padding="5,1">
  53. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatZAxisIsServoOn}" EnableToolTip="False"/>
  54. </Border>
  55. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Grid.Column="0" Padding="10,1,0,1">
  56. <TextBlock Text="Error Code" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  57. </Border>
  58. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column ="1" Padding="5,1">
  59. <TextBlock Text="{Binding BoatZAxisErrorCode,StringFormat={}{0:f2}}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  60. </Border>
  61. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Grid.Column="2" Padding="10,1,0,1">
  62. <TextBlock Text="Motor Warning" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  63. </Border>
  64. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column ="3" Padding="5,1">
  65. <deviceControl:AITSensor CustomColorOn="Red" IsCustomRender="True" CustomColorOff="#FF07FF07" LightOnValue="{Binding BoatZAxisIsWarning}" EnableToolTip="False"/>
  66. </Border>
  67. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Grid.Column="0" Padding="10,1,0,1">
  68. <TextBlock Text="Current Speed(mm/min)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  69. </Border>
  70. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="1" Padding="5,1">
  71. <TextBlock Text="{Binding BoatZAxisCurrentSpeed,StringFormat={}{0:f2}}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  72. </Border>
  73. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Grid.Column="2" Padding="10,1,0,1">
  74. <TextBlock Text="Motor Alarm" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  75. </Border>
  76. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="3" Padding="5,1">
  77. <deviceControl:AITSensor CustomColorOn="Red" IsCustomRender="True" CustomColorOff="#FF07FF07" LightOnValue="{Binding BoatZAxisIsAlarm}" EnableToolTip="False"/>
  78. </Border>
  79. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Grid.Column="0" Padding="10,1,0,1">
  80. <TextBlock Text="Current Position(mm)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  81. </Border>
  82. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="1" Padding="5,1">
  83. <TextBlock Text="{Binding BoatZAxisCurrentPosition,StringFormat={}{0:f2}}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  84. </Border>
  85. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Grid.Column="2" Padding="10,1,0,1">
  86. <TextBlock Text="Motor Moving" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  87. </Border>
  88. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="3" Padding="5,1">
  89. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatZAxisIsMoving}" EnableToolTip="False"/>
  90. </Border>
  91. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="5" Grid.Column="0" Padding="10,1,0,1">
  92. <TextBlock Text="At Position1" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  93. </Border>
  94. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column="1">
  95. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatZAxisAtPosition1}" EnableToolTip="False"/>
  96. </Border>
  97. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column="2" Grid.ColumnSpan="2">
  98. <Button Content="Move To Position1" Width="150" Height="30" Margin="0,0,10,0" IsEnabled="{Binding IsSystemStaus}">
  99. <i:Interaction.Triggers>
  100. <i:EventTrigger EventName="Click">
  101. <cal:ActionMessage MethodName="MoveTo">
  102. <cal:Parameter Value="Position1" />
  103. </cal:ActionMessage>
  104. </i:EventTrigger>
  105. </i:Interaction.Triggers>
  106. </Button>
  107. </Border>
  108. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="6" Grid.Column="0" Padding="10,1,0,1">
  109. <TextBlock Text="At Position2" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  110. </Border>
  111. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="6" Grid.Column="1">
  112. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatZAxisAtPosition2}" EnableToolTip="False"/>
  113. </Border>
  114. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="6" Grid.Column="2" Grid.ColumnSpan="2">
  115. <Button Content="Move To Position2" Width="150" Height="30" Margin="0,0,10,0" IsEnabled="{Binding IsSystemStaus}">
  116. <i:Interaction.Triggers>
  117. <i:EventTrigger EventName="Click">
  118. <cal:ActionMessage MethodName="MoveTo">
  119. <cal:Parameter Value="Position2" />
  120. </cal:ActionMessage>
  121. </i:EventTrigger>
  122. </i:Interaction.Triggers>
  123. </Button>
  124. </Border>
  125. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="7" Grid.Column="0" Padding="10,1,0,1">
  126. <TextBlock Text="At Position3" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  127. </Border>
  128. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="7" Grid.Column="1">
  129. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatZAxisAtPosition3}" EnableToolTip="False"/>
  130. </Border>
  131. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="7" Grid.Column="2" Grid.ColumnSpan="2">
  132. <Button Content="Move To Position3" Width="150" Height="30" Margin="0,0,10,0" IsEnabled="{Binding IsSystemStaus}">
  133. <i:Interaction.Triggers>
  134. <i:EventTrigger EventName="Click">
  135. <cal:ActionMessage MethodName="MoveTo">
  136. <cal:Parameter Value="Position3" />
  137. </cal:ActionMessage>
  138. </i:EventTrigger>
  139. </i:Interaction.Triggers>
  140. </Button>
  141. </Border>
  142. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="8" Grid.Column="0" Padding="10,1,0,1">
  143. <TextBlock Text="At Home Position" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  144. </Border>
  145. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="8" Grid.Column="1">
  146. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatZAxisAtHomePosition}" EnableToolTip="False"/>
  147. </Border>
  148. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="8" Grid.Column="2" Grid.ColumnSpan="2">
  149. </Border>
  150. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="9" Grid.Column="0" Padding="10,1,0,1">
  151. <TextBlock Text="Move Speed(mm/min)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  152. </Border>
  153. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="9" Grid.Column="1">
  154. <TextBlock Text="{Binding ZAxisMoveSpeed, StringFormat={}{0:f2}}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  155. </Border>
  156. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="9" Grid.Column ="2" Grid.ColumnSpan="3" Padding="5,1">
  157. <StackPanel Orientation="Horizontal" >
  158. <TextBox Text="{Binding ZAxisMoveSpeed,Mode=OneTime}" x:Name="tbMoveSpeed" HorizontalContentAlignment="Center" Width="90" Height="30" Tag="Number"></TextBox>
  159. <Button Content="Save" Width="80" Height="30" Margin="10,0,10,0">
  160. <i:Interaction.Triggers>
  161. <i:EventTrigger EventName="Click">
  162. <cal:ActionMessage MethodName="BoatZSaveValue">
  163. <cal:Parameter Value="MoveSpeed" />
  164. <cal:Parameter Value="{Binding ElementName=tbMoveSpeed}" />
  165. </cal:ActionMessage>
  166. </i:EventTrigger>
  167. </i:Interaction.Triggers>
  168. </Button>
  169. </StackPanel>
  170. </Border>
  171. <!--<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="10" Grid.Column="0" Padding="10,1,0,1">
  172. <TextBlock Text="Acc(mm/min)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  173. </Border>
  174. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="10" Grid.Column="1">
  175. <TextBlock Text="{Binding ZAxisAcc, StringFormat={}{0:f2}}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  176. </Border>
  177. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="10" Grid.Column ="2" Grid.ColumnSpan="3" Padding="5,1">
  178. <StackPanel Orientation="Horizontal" >
  179. <TextBox Text="{Binding ZAxisAcc,Mode=OneTime}" x:Name="tbZAxisAcc" HorizontalContentAlignment="Center" Width="90" Height="30" Tag="Number"></TextBox>
  180. <Button Content="Save" Width="80" Height="30" Margin="10,0,10,0">
  181. <i:Interaction.Triggers>
  182. <i:EventTrigger EventName="Click">
  183. <cal:ActionMessage MethodName="BoatZSaveValue">
  184. <cal:Parameter Value="Acc" />
  185. <cal:Parameter Value="{Binding ElementName=tbZAxisAcc}" />
  186. </cal:ActionMessage>
  187. </i:EventTrigger>
  188. </i:Interaction.Triggers>
  189. </Button>
  190. </StackPanel>
  191. </Border>-->
  192. <!--<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="11" Grid.Column="0" Padding="10,1,0,1">
  193. <TextBlock Text="Dec(mm/min)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  194. </Border>
  195. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="11" Grid.Column="1">
  196. <TextBlock Text="{Binding ZAxisDec, StringFormat={}{0:f2}}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  197. </Border>
  198. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="11" Grid.Column ="2" Grid.ColumnSpan="3" Padding="5,1">
  199. <StackPanel Orientation="Horizontal" >
  200. <TextBox Text="{Binding ZAxisDec,Mode=OneTime}" x:Name="tbZAxisDec" HorizontalContentAlignment="Center" Width="90" Height="30" Tag="Number"></TextBox>
  201. <Button Content="Save" Width="80" Height="30" Margin="10,0,10,0">
  202. <i:Interaction.Triggers>
  203. <i:EventTrigger EventName="Click">
  204. <cal:ActionMessage MethodName="BoatZSaveValue">
  205. <cal:Parameter Value="Dec" />
  206. <cal:Parameter Value="{Binding ElementName=tbZAxisDec}" />
  207. </cal:ActionMessage>
  208. </i:EventTrigger>
  209. </i:Interaction.Triggers>
  210. </Button>
  211. </StackPanel>
  212. </Border>-->
  213. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="10" Grid.RowSpan="3" Grid.ColumnSpan="4" Padding="0,0,0,0">
  214. <StackPanel Orientation="Horizontal" Margin="0,0,0,0" >
  215. <Button Content="Continue" Width="92" Height="30" Margin="30,-70,0,0" IsEnabled="{Binding IsProcessing}">
  216. <i:Interaction.Triggers>
  217. <i:EventTrigger EventName="Click">
  218. <cal:ActionMessage MethodName="Continue">
  219. <cal:Parameter Value="PM1.BoatElevatorServo" />
  220. </cal:ActionMessage>
  221. </i:EventTrigger>
  222. </i:Interaction.Triggers>
  223. </Button>
  224. <Button Content="Stop" Width="92" Height="30" Margin="22,-70,10,0" IsEnabled="{Binding IsSystemStaus}">
  225. <i:Interaction.Triggers>
  226. <i:EventTrigger EventName="Click">
  227. <cal:ActionMessage MethodName="Stop">
  228. <cal:Parameter Value="PM1.BoatElevatorServo" />
  229. </cal:ActionMessage>
  230. </i:EventTrigger>
  231. </i:Interaction.Triggers>
  232. </Button>
  233. <Button Content="Reset" Width="92" Height="30" Margin="5,-70,10,0" IsEnabled="{Binding IsSystemStaus}">
  234. <i:Interaction.Triggers>
  235. <i:EventTrigger EventName="Click">
  236. <cal:ActionMessage MethodName="Reset">
  237. <cal:Parameter Value="PM1.BoatElevatorServo" />
  238. </cal:ActionMessage>
  239. </i:EventTrigger>
  240. </i:Interaction.Triggers>
  241. </Button>
  242. <Button Content="Home" Width="92" Height="30" Margin="5,-70,0,0" IsEnabled="{Binding IsSystemStaus}">
  243. <i:Interaction.Triggers>
  244. <i:EventTrigger EventName="Click">
  245. <cal:ActionMessage MethodName="Home">
  246. <cal:Parameter Value="PM1.BoatElevatorServo" />
  247. </cal:ActionMessage>
  248. </i:EventTrigger>
  249. </i:Interaction.Triggers>
  250. </Button>
  251. <StackPanel Visibility="{Binding RunningModeIsDebug,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}" Orientation="Horizontal" Height="34" Margin="-420,80,0,0">
  252. <Label Content="From: "></Label>
  253. <ComboBox x:Name="cbModulesCassetteRobot" Margin="0,0,3,0" Height="25" Width="120" ItemsSource="{Binding ZPositions}" SelectedItem="{Binding ZAxisTestStartPosition}" />
  254. <Label Content="To: "></Label>
  255. <ComboBox x:Name="cbSlotsCassetteRobot" Margin="3,0,3,0" Height="25" Width="120" ItemsSource="{Binding ZPositions}" SelectedItem="{Binding ZAxisTestEndPosition}" />
  256. <Button Content="Move Test" Width="100" Height="30" Margin="3,0,0,0" IsEnabled="{Binding IsSystemStaus}">
  257. <i:Interaction.Triggers>
  258. <i:EventTrigger EventName="Click">
  259. <cal:ActionMessage MethodName="BoatZServoTest"/>
  260. </i:EventTrigger>
  261. </i:Interaction.Triggers>
  262. </Button>
  263. </StackPanel>
  264. </StackPanel>
  265. </Border>
  266. </Grid>
  267. <Canvas>
  268. <Image Source="/FurnaceUI;component/Resources/Images/Controls3/01.png" Canvas.Left="573" Canvas.Top="10"/>
  269. <parts:BoatElevatorRobot RobotTarget="{Binding BoatPosition}" BoatStatus="{Binding BoatStatus}" StationPosition="{Binding StationPosition3}" Canvas.Left="630" Canvas.Top="373" Visibility="{Binding IsShowBoatElevatorRobot, Converter={StaticResource bool2VisibilityConverter}}"/>
  270. <TextBlock Text="Position 3 ----->" Canvas.Left="505" Canvas.Top="655" FontSize="14"/>
  271. <TextBlock Text="Position 2 -------->" Canvas.Left="505" Canvas.Top="500" FontSize="14"/>
  272. <TextBlock Text="Position 1 -------->" Canvas.Left="505" Canvas.Top="350" FontSize="14"/>
  273. <i:Interaction.Triggers>
  274. <i:EventTrigger EventName="MouseLeftButtonDown">
  275. <cal:ActionMessage MethodName="BoatModify"/>
  276. </i:EventTrigger>
  277. </i:Interaction.Triggers>
  278. </Canvas>
  279. <Grid Margin="780,20,0,0" Visibility="{Binding IsBoatRAxisInstalled,Converter={StaticResource bool2VisibilityConverter}}">
  280. <Grid.RowDefinitions>
  281. <RowDefinition Height="24"/>
  282. <RowDefinition Height="35"/>
  283. <RowDefinition Height="35"/>
  284. <RowDefinition Height="35"/>
  285. <RowDefinition Height="35"/>
  286. <RowDefinition Height="35"/>
  287. <RowDefinition Height="35"/>
  288. <RowDefinition Height="115"/>
  289. </Grid.RowDefinitions>
  290. <Grid.ColumnDefinitions>
  291. <ColumnDefinition Width="100"/>
  292. <ColumnDefinition Width="90"/>
  293. <ColumnDefinition Width="110"/>
  294. <ColumnDefinition Width="180"/>
  295. </Grid.ColumnDefinitions>
  296. <Label Style="{DynamicResource Table_TitleStyle}" Grid.Row="0" Grid.ColumnSpan="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  297. <Label.Content>
  298. <TextBlock Text="Boat R Axis Information" Foreground="White"></TextBlock>
  299. </Label.Content>
  300. </Label>
  301. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.Column="0" Padding="5,1,0,1">
  302. <TextBlock Text="Status" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  303. </Border>
  304. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="1" Padding="5,1">
  305. <TextBlock Text="{Binding BoatRAxisStatus}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  306. </Border>
  307. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.Column="2" Padding="5,1,0,1">
  308. <TextBlock Text="Rotating" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  309. </Border>
  310. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="3" Padding="5,1">
  311. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatRAxisIsMoving}" EnableToolTip="False"/>
  312. </Border>
  313. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Grid.Column="0" Padding="5,1,0,1">
  314. <TextBlock Text="Error Code" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  315. </Border>
  316. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column ="1" Padding="5,1">
  317. <TextBlock Text="{Binding BoatRAxisErrorCode,StringFormat={}{0:f2}}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  318. </Border>
  319. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="2" Grid.Column="2" Padding="5,1,0,1">
  320. <TextBlock Text="Motor Warning" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  321. </Border>
  322. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column ="3" Padding="5,1">
  323. <deviceControl:AITSensor CustomColorOn="Red" IsCustomRender="True" CustomColorOff="#FF07FF07" LightOnValue="{Binding BoatRAxisIsWarning}" EnableToolTip="False"/>
  324. </Border>
  325. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Grid.Column="0" Padding="5,1,0,1">
  326. <TextBlock Text="Current Speed(rpm)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  327. </Border>
  328. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="1" Padding="5,1">
  329. <TextBlock Text="{Binding BoatRAxisCurrentSpeed,StringFormat={}{0:f2}}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  330. </Border>
  331. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="3" Grid.Column="2" Padding="5,1,0,1">
  332. <TextBlock Text="Motor Alarm" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  333. </Border>
  334. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="3" Padding="5,1">
  335. <deviceControl:AITSensor CustomColorOn="Red" IsCustomRender="True" CustomColorOff="#FF07FF07" LightOnValue="{Binding BoatRAxisIsAlarm}" EnableToolTip="False"/>
  336. </Border>
  337. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Grid.Column="0" Padding="5,1,0,1">
  338. <TextBlock Text="Home Done" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  339. </Border>
  340. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="1" Padding="5,1">
  341. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatRAxisIsHomeDone}" EnableToolTip="False"/>
  342. </Border>
  343. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Grid.Column="2" Padding="5,1,0,1">
  344. <TextBlock Text="Homing" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  345. </Border>
  346. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="3" Padding="5,1">
  347. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatRAxisIsHoming}" EnableToolTip="False"/>
  348. </Border>
  349. <!--<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="5" Grid.Column="0" Padding="5,1,0,1">
  350. <TextBlock Text="Origin Done" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  351. </Border>
  352. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column="1">
  353. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatRAxisIsInitDone}" EnableToolTip="False"/>
  354. </Border>
  355. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="5" Grid.Column ="2" Padding="5,1">
  356. <TextBlock Text="Origin" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  357. </Border>
  358. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column="3">
  359. <deviceControl:AITSensor CustomColorOn="#FF07FF07" IsCustomRender="True" CustomColorOff="Gray" LightOnValue="{Binding BoatRAxisIsInitializing}" EnableToolTip="False"/>
  360. </Border>-->
  361. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="6" Grid.Column="0" Padding="5,1,0,1">
  362. <TextBlock Text="Set Speed (rpm)" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  363. </Border>
  364. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="6" Grid.Column="1">
  365. <TextBlock Text="{Binding RAxisMoveSpeed, StringFormat={}{0:f2},UpdateSourceTrigger=PropertyChanged}" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  366. </Border>
  367. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="6" Grid.Column="2" Grid.ColumnSpan="2">
  368. <StackPanel Orientation="Horizontal" >
  369. <controls:TextBoxEx Grid.Column="1" EditBoxMode="Decimal" KeepDecimals="1" x:Name="tbSetSpeed" Width="90" Height="30" AllowIsOutOfRangeSaveChange="False" Text="{Binding RAxisMoveSpeed,Mode=OneTime}" Margin="4,0,4,0" Tag="Number"/>
  370. <Button Content="Save" Width="80" Height="30" Margin="10,0,10,0">
  371. <i:Interaction.Triggers>
  372. <i:EventTrigger EventName="Click">
  373. <cal:ActionMessage MethodName="BoatRSaveValue">
  374. <cal:Parameter Value="MoveSpeed" />
  375. <cal:Parameter Value="{Binding ElementName=tbSetSpeed}" />
  376. </cal:ActionMessage>
  377. </i:EventTrigger>
  378. </i:Interaction.Triggers>
  379. </Button>
  380. </StackPanel>
  381. </Border>
  382. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="5" Grid.Column="0" Padding="5,1,0,1">
  383. <TextBlock Text="Rotation Direction" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  384. </Border>
  385. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column ="1" Padding="5,1">
  386. <TextBlock Text="{Binding BoatRAxisDirection,StringFormat={}{0:f2}}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  387. </Border>
  388. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column="2" Grid.ColumnSpan="2" Padding="5,1,0,1">
  389. <StackPanel Orientation="Horizontal" >
  390. <Button Content="CW" Width="80" Height="30" IsEnabled="{Binding IsSystemStaus}">
  391. <i:Interaction.Triggers>
  392. <i:EventTrigger EventName="Click">
  393. <cal:ActionMessage MethodName="RAxisMoveTo">
  394. <cal:Parameter Value="CW" />
  395. </cal:ActionMessage>
  396. </i:EventTrigger>
  397. </i:Interaction.Triggers>
  398. </Button>
  399. <Button Content="CCW" Width="80" Height="30" Margin="15,0,10,0" IsEnabled="{Binding IsSystemStaus}">
  400. <i:Interaction.Triggers>
  401. <i:EventTrigger EventName="Click">
  402. <cal:ActionMessage MethodName="RAxisMoveTo">
  403. <cal:Parameter Value="CCW" />
  404. </cal:ActionMessage>
  405. </i:EventTrigger>
  406. </i:Interaction.Triggers>
  407. </Button>
  408. </StackPanel>
  409. </Border>
  410. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="7" Grid.RowSpan="2" Grid.ColumnSpan="4" Padding="80,0,0,0">
  411. <StackPanel Orientation="Horizontal" >
  412. <Button Content="Home" Width="92" Height="30" Margin="22,-70,10,0" IsEnabled="{Binding IsSystemStaus}">
  413. <i:Interaction.Triggers>
  414. <i:EventTrigger EventName="Click">
  415. <cal:ActionMessage MethodName="Home">
  416. <cal:Parameter Value="PM1.BoatRotationServo" />
  417. </cal:ActionMessage>
  418. </i:EventTrigger>
  419. </i:Interaction.Triggers>
  420. </Button>
  421. <Button Content="Stop" Width="92" Height="30" Margin="5,-70,10,0" IsEnabled="{Binding IsSystemStaus}">
  422. <i:Interaction.Triggers>
  423. <i:EventTrigger EventName="Click">
  424. <cal:ActionMessage MethodName="Stop">
  425. <cal:Parameter Value="PM1.BoatRotationServo" />
  426. </cal:ActionMessage>
  427. </i:EventTrigger>
  428. </i:Interaction.Triggers>
  429. </Button>
  430. <Button Content="Reset" Width="92" Height="30" Margin="5,-70,0,0" IsEnabled="{Binding IsSystemStaus}">
  431. <i:Interaction.Triggers>
  432. <i:EventTrigger EventName="Click">
  433. <cal:ActionMessage MethodName="Reset">
  434. <cal:Parameter Value="PM1.BoatRotationServo" />
  435. </cal:ActionMessage>
  436. </i:EventTrigger>
  437. </i:Interaction.Triggers>
  438. </Button>
  439. <Button Content="CW Test" Width="92" Height="30" Margin="-520,0,0,0" Visibility="{Binding RunningModeIsDebug,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}" IsEnabled="{Binding IsSystemStaus}">
  440. <i:Interaction.Triggers>
  441. <i:EventTrigger EventName="Click">
  442. <cal:ActionMessage MethodName="BoatRotationServoTest">
  443. <cal:Parameter Value="CW" />
  444. </cal:ActionMessage>
  445. </i:EventTrigger>
  446. </i:Interaction.Triggers>
  447. </Button>
  448. <Button Content="CCW Test" Width="92" Height="30" Margin="-305,0,0,0" Visibility="{Binding RunningModeIsDebug,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}" IsEnabled="{Binding IsSystemStaus}">
  449. <i:Interaction.Triggers>
  450. <i:EventTrigger EventName="Click">
  451. <cal:ActionMessage MethodName="BoatRotationServoTest">
  452. <cal:Parameter Value="CCW" />
  453. </cal:ActionMessage>
  454. </i:EventTrigger>
  455. </i:Interaction.Triggers>
  456. </Button>
  457. <Button Content="Stop Test" Width="92" Height="30" Margin="-92,0,0,0" Visibility="{Binding RunningModeIsDebug,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}" IsEnabled="{Binding IsSystemStaus}">
  458. <i:Interaction.Triggers>
  459. <i:EventTrigger EventName="Click">
  460. <cal:ActionMessage MethodName="BoatRotationServoStopTest">
  461. </cal:ActionMessage>
  462. </i:EventTrigger>
  463. </i:Interaction.Triggers>
  464. </Button>
  465. </StackPanel>
  466. </Border>
  467. </Grid>
  468. <Grid Margin="780,430,0,0" Visibility="{Binding IsBoatRAxisInstalled,Converter={StaticResource bool2VisibilityConverter}}">
  469. <Grid.RowDefinitions>
  470. <RowDefinition Height="24"/>
  471. <RowDefinition Height="35"/>
  472. </Grid.RowDefinitions>
  473. <Grid.ColumnDefinitions>
  474. <ColumnDefinition Width="160"/>
  475. <ColumnDefinition Width="100"/>
  476. <ColumnDefinition Width="100"/>
  477. <ColumnDefinition Width="120"/>
  478. </Grid.ColumnDefinitions>
  479. <Label Style="{DynamicResource Table_TitleStyle}" Grid.Row="0" Grid.ColumnSpan="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  480. <Label.Content>
  481. <TextBlock Text="Shutter Information" Foreground="White"></TextBlock>
  482. </Label.Content>
  483. </Label>
  484. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="1" Grid.Column="0" Padding="5,1,0,1">
  485. <TextBlock Text="Open/Close Status" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center" />
  486. </Border>
  487. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,0,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column="1" Padding="5,1">
  488. <TextBlock Text="{Binding AutoDoorOpenCloseStatus}" TextAlignment="Center" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  489. </Border>
  490. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="2" Grid.ColumnSpan="2" Padding="5,1">
  491. <StackPanel Orientation="Horizontal" >
  492. <Button Content="Open" Width="80" Height="25" Margin="10,0,10,0" IsEnabled="{Binding IsSystemStaus}">
  493. <i:Interaction.Triggers>
  494. <i:EventTrigger EventName="Click">
  495. <cal:ActionMessage MethodName="SetOpen">
  496. <cal:Parameter Value="PM1.SetAutoShutterOpen" />
  497. <cal:Parameter Value="True"/>
  498. </cal:ActionMessage>
  499. </i:EventTrigger>
  500. </i:Interaction.Triggers>
  501. </Button>
  502. <Button Content="Close" Width="80" Height="25" Margin="10,0,10,0" IsEnabled="{Binding IsSystemStaus}">
  503. <i:Interaction.Triggers>
  504. <i:EventTrigger EventName="Click">
  505. <cal:ActionMessage MethodName="SetOpen">
  506. <cal:Parameter Value="PM1.SetAutoShutterOpen" />
  507. <cal:Parameter Value="False"/>
  508. </cal:ActionMessage>
  509. </i:EventTrigger>
  510. </i:Interaction.Triggers>
  511. </Button>
  512. </StackPanel>
  513. </Border>
  514. </Grid>
  515. <Grid Visibility="{Binding RunningModeIsDebug,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}" Margin="780,515,0,0">
  516. <Grid.RowDefinitions>
  517. <RowDefinition Height="24"/>
  518. <RowDefinition Height="100"/>
  519. </Grid.RowDefinitions>
  520. <Grid.ColumnDefinitions>
  521. <ColumnDefinition Width="480"/>
  522. </Grid.ColumnDefinitions>
  523. <Label Style="{DynamicResource Table_TitleStyle}" Grid.Row="0" Grid.ColumnSpan="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  524. <Label.Content>
  525. <TextBlock Text="Boat Cycle Test" Foreground="White"></TextBlock>
  526. </Label.Content>
  527. </Label>
  528. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column="0" Padding="0,0,0,0">
  529. <StackPanel Orientation="Vertical" Margin="0,0,0,0" >
  530. <StackPanel Orientation="Horizontal" Height="35" Margin="0,10,0,0">
  531. <Label Content="From: "></Label>
  532. <ComboBox Margin="0,0,3,0" Height="25" Width="120" ItemsSource="{Binding ZPositions}" SelectedItem="{Binding ZAxisTestStartPosition}" />
  533. <Label Content="To: "></Label>
  534. <ComboBox Margin="3,0,3,0" Height="25" Width="120" ItemsSource="{Binding ZPositions}" SelectedItem="{Binding ZAxisTestEndPosition}" />
  535. <ComboBox Margin="3,0,3,0" Height="25" Width="120" ItemsSource="{Binding RPositions}" SelectedItem="{Binding RAxisTestDirection}" />
  536. </StackPanel>
  537. <StackPanel Orientation="Horizontal" Height="50" Margin="0,0,0,0">
  538. <TextBlock Text="{Binding BoatCycleDisplay}" Width="180" VerticalAlignment="Center"></TextBlock>
  539. <Button Content="Move Test Start" Width="120" Height="30" Margin="15,10,0,0" IsEnabled="{Binding IsSystemStaus}">
  540. <i:Interaction.Triggers>
  541. <i:EventTrigger EventName="Click">
  542. <cal:ActionMessage MethodName="BoatTestStart"/>
  543. </i:EventTrigger>
  544. </i:Interaction.Triggers>
  545. </Button>
  546. <Button Content="Move Test Stop" Width="120" Height="30" Margin="15,10,0,0" IsEnabled="{Binding IsSystemStaus}">
  547. <i:Interaction.Triggers>
  548. <i:EventTrigger EventName="Click">
  549. <cal:ActionMessage MethodName="BoatTestStop"/>
  550. </i:EventTrigger>
  551. </i:Interaction.Triggers>
  552. </Button>
  553. </StackPanel>
  554. </StackPanel>
  555. </Border>
  556. </Grid>
  557. <Grid Visibility="{Binding RunningModeIsDebug,UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}" Margin="780,655,0,0">
  558. <Grid.RowDefinitions>
  559. <RowDefinition Height="24"/>
  560. <RowDefinition Height="50"/>
  561. </Grid.RowDefinitions>
  562. <Grid.ColumnDefinitions>
  563. <ColumnDefinition Width="480"/>
  564. </Grid.ColumnDefinitions>
  565. <Label Style="{DynamicResource Table_TitleStyle}" Grid.Row="0" Grid.ColumnSpan="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  566. <Label.Content>
  567. <TextBlock Text="Shutter Cycle Test" Foreground="White"></TextBlock>
  568. </Label.Content>
  569. </Label>
  570. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column="0" Padding="0,0,0,0">
  571. <StackPanel Orientation="Vertical" Margin="0,0,0,0" >
  572. <StackPanel Orientation="Horizontal" Height="40" Margin="0,0,0,0">
  573. <TextBlock Text="{Binding ShutterCycleDisplay}" Width="140" VerticalAlignment="Center"></TextBlock>
  574. <Button Content="Shutter Test Start" Width="140" Height="30" Margin="15,10,0,0" IsEnabled="{Binding IsSystemStaus}">
  575. <i:Interaction.Triggers>
  576. <i:EventTrigger EventName="Click">
  577. <cal:ActionMessage MethodName="ShutterTestStart"/>
  578. </i:EventTrigger>
  579. </i:Interaction.Triggers>
  580. </Button>
  581. <Button Content="Shutter Test Stop" Width="140" Height="30" Margin="15,10,0,0" IsEnabled="{Binding IsSystemStaus}">
  582. <i:Interaction.Triggers>
  583. <i:EventTrigger EventName="Click">
  584. <cal:ActionMessage MethodName="ShutterTestStop"/>
  585. </i:EventTrigger>
  586. </i:Interaction.Triggers>
  587. </Button>
  588. </StackPanel>
  589. </StackPanel>
  590. </Border>
  591. </Grid>
  592. </Canvas>
  593. </Grid>
  594. </UserControl>