PlatingCellUIControl.xaml 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. <UserControl x:Class="PunkHPX8_Themes.UserControls.PlatingCellUIControl"
  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:userControls="clr-namespace:PunkHPX8_Themes.UserControls"
  7. xmlns:customControls="clr-namespace:PunkHPX8_Themes.CustomControls"
  8. xmlns:converters="clr-namespace:PunkHPX8_Themes.Converters"
  9. xmlns:local="clr-namespace:PunkHPX8_Themes.UserControls"
  10. mc:Ignorable="d" Name="self"
  11. d:DesignHeight="500" d:DesignWidth="800">
  12. <UserControl.Resources>
  13. <converters:BoolToVisibility2 x:Key="boolToVisibility2"></converters:BoolToVisibility2>
  14. <converters:BoolToVisibility x:Key="boolToVisibility"></converters:BoolToVisibility>
  15. <converters:BoolToOrientation x:Key="boolToOrientation"></converters:BoolToOrientation>
  16. <converters:MutiBoolToBool x:Key="mutiBoolToBool"/>
  17. <ContextMenu x:Key="CCRValve">
  18. <MenuItem Header="Open" Click="OpenCCRValve_Click"/>
  19. <MenuItem Header="Close" Click="CloseCCRValve_Click"/>
  20. </ContextMenu>
  21. <ContextMenu x:Key="RinseValve">
  22. <MenuItem Header="Open" Click="OpenRinseValve_Click"/>
  23. <MenuItem Header="Close" Click="CloseRinseValve_Click"/>
  24. </ContextMenu>
  25. <ContextMenu x:Key="CAIsolationValve">
  26. <MenuItem Header="Open" Click="OpenCAIsolationValve_Click"/>
  27. <MenuItem Header="Close" Click="CloseCAIsolationValve_Click"/>
  28. </ContextMenu>
  29. <ContextMenu x:Key="ANIsolationValve">
  30. <MenuItem Header="Open" Click="OpenANIsolationValve_Click"/>
  31. <MenuItem Header="Close" Click="CloseANIsolationValve_Click"/>
  32. </ContextMenu>
  33. </UserControl.Resources>
  34. <Canvas RenderTransformOrigin="0,0">
  35. <Canvas.RenderTransform>
  36. <ScaleTransform ScaleX="1.2" ScaleY="1.2" />
  37. </Canvas.RenderTransform>
  38. <Rectangle Visibility="{Binding ElementName=self,Path=IsLeftEnable,Converter={StaticResource boolToVisibility}}" Width="270" Height="228" Fill="LightGray" Canvas.Top="176" Canvas.Left="64" Stroke="LightGray" StrokeThickness="1" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="3" Opacity="0.5"/>
  39. <Rectangle Visibility="{Binding ElementName=self,Path=IsLeftEnable,Converter={StaticResource boolToVisibility2}}" Width="270" Height="228" Fill="LightGray" Canvas.Top="176" Canvas.Left="414" Stroke="LightGray" StrokeThickness="1" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="3" Opacity="0.5"/>
  40. <Canvas Width="125" Height="75" Canvas.Left="199" Canvas.Top="234" HorizontalAlignment="Left" VerticalAlignment="Center">
  41. <Canvas.RenderTransform>
  42. <ScaleTransform ScaleX="0.6667" ScaleY="0.6667" />
  43. </Canvas.RenderTransform>
  44. <Rectangle Width="200" Height="100" Fill="Yellow" Canvas.Top="0" />
  45. <Rectangle Width="160" Height="60" Fill="Gold" Canvas.Top="26" Canvas.Left="20" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  46. <Rectangle Width="180" Height="40" Fill="Bisque" Canvas.Top="0" Canvas.Left="7" HorizontalAlignment="Center" VerticalAlignment="Top"/>
  47. <Polygon Points="0,20 10,0 20,20" Fill="Yellow" Canvas.Left="7" Canvas.Top="0" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" VerticalAlignment="Top">
  48. <Polygon.RenderTransform>
  49. <TransformGroup>
  50. <ScaleTransform/>
  51. <SkewTransform/>
  52. <RotateTransform Angle="90"/>
  53. <TranslateTransform/>
  54. </TransformGroup>
  55. </Polygon.RenderTransform>
  56. </Polygon>
  57. <Polygon Points="0,20 10,0 20,20" Fill="Yellow" Canvas.Left="168" Canvas.Top="0" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" VerticalAlignment="Center">
  58. <Polygon.RenderTransform>
  59. <TransformGroup>
  60. <ScaleTransform/>
  61. <SkewTransform/>
  62. <RotateTransform Angle="-90"/>
  63. <TranslateTransform/>
  64. </TransformGroup>
  65. </Polygon.RenderTransform>
  66. </Polygon>
  67. <Polygon Points="50,50 210,50 200,60 60,60"
  68. Fill="White"
  69. StrokeThickness="1" Canvas.Left="-30" Canvas.Top="-10"/>
  70. </Canvas>
  71. <Rectangle Width="100" Height="10" Fill="#E0F7FA" Canvas.Top="179" Canvas.Left="215" Stroke="LightGray" StrokeThickness="1" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  72. <Polygon Points="10,40 110,40 120,50 0,50" Fill="#E0F7FA" Canvas.Left="205" Canvas.Top="149" HorizontalAlignment="Left" VerticalAlignment="Center" Stroke="LightGray" StrokeThickness="1"/>
  73. <Rectangle Fill="#E0F7FA" Width="120" Height="35" Canvas.Top="199" Canvas.Left="205" Stroke="LightGray" StrokeThickness="3" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  74. <Rectangle Fill="Gold" Width="80" Height="8" Canvas.Top="159" Canvas.Left="224" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  75. <Polygon Points="0,0 90,0 90,10 85,15 5,15 0,10" Fill="Orange" Canvas.Left="219" Canvas.Top="145" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  76. <Rectangle Fill="PeachPuff" Width="30" Height="10" Canvas.Top="135" Canvas.Left="248" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  77. <Rectangle Fill="Thistle" Width="3" Height="10" Canvas.Top="135" Canvas.Left="226" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  78. <Rectangle Fill="Thistle" Width="3" Height="10" Canvas.Top="135" Canvas.Left="298" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  79. <Rectangle Fill="Thistle" Width="85" Height="10" Canvas.Top="125" Canvas.Left="221" HorizontalAlignment="Left" VerticalAlignment="Center" RadiusX="5" RadiusY="5"/>
  80. <Rectangle Fill="LightGray" Width="26" Height="5" Canvas.Top="120" Canvas.Left="250" Stroke="Gray" StrokeThickness="1" HorizontalAlignment="Left" VerticalAlignment="Top"/>
  81. <Rectangle Fill="LightGray" Width="20" Height="12" Canvas.Top="108" Canvas.Left="253" Stroke="Gray" StrokeThickness="1" HorizontalAlignment="Left" VerticalAlignment="Top"/>
  82. <Rectangle Fill="LightGray" Width="14" Height="4" Canvas.Top="104" Canvas.Left="256" HorizontalAlignment="Left" VerticalAlignment="Top"/>
  83. <Rectangle Fill="LightGray" Width="40" Height="150" Canvas.Top="91" Canvas.Left="351" Stroke="Black" StrokeThickness="2" HorizontalAlignment="Left" VerticalAlignment="Top"/>
  84. <Polygon Points="-20,0 60,0 80,30 120,30 140,0 220,0 220,10 150,10 120,80 80,80 50,10 -20,10" Fill="Lavender" Canvas.Left="271" Canvas.Top="95" HorizontalAlignment="Left" VerticalAlignment="Top"/>
  85. <Rectangle Fill="Gold" Width="80" Height="8" Canvas.Top="161" Canvas.Left="443" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  86. <Polygon Points="0,0 90,0 90,10 85,15 5,15 0,10" Fill="Orange" Canvas.Left="438" Canvas.Top="147" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  87. <Rectangle Fill="PeachPuff" Width="30" Height="10" Canvas.Top="137" Canvas.Left="467" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  88. <Rectangle Fill="Thistle" Width="3" Height="10" Canvas.Top="137" Canvas.Left="445" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  89. <Rectangle Fill="Thistle" Width="3" Height="10" Canvas.Top="137" Canvas.Left="517" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  90. <Rectangle Fill="Thistle" Width="85" Height="10" Canvas.Top="127" Canvas.Left="440" RadiusX="5" RadiusY="5" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  91. <Rectangle Fill="LightGray" Width="26" Height="5" Canvas.Top="122" Canvas.Left="468" Stroke="Gray" StrokeThickness="1" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  92. <Rectangle Fill="LightGray" Width="20" Height="12" Canvas.Top="110" Canvas.Left="471" Stroke="Gray" StrokeThickness="1" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  93. <Rectangle Fill="LightGray" Width="14" Height="4" Canvas.Top="106" Canvas.Left="474" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  94. <Canvas Width="125" Height="75" Canvas.Left="417" Canvas.Top="235" HorizontalAlignment="Left" VerticalAlignment="Center">
  95. <Canvas.RenderTransform>
  96. <ScaleTransform ScaleX="0.6667" ScaleY="0.6667" />
  97. </Canvas.RenderTransform>
  98. <Rectangle Width="200" Height="100" Fill="Yellow" Canvas.Top="0" />
  99. <Rectangle Width="160" Height="60" Fill="Gold" Canvas.Top="26" Canvas.Left="20" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  100. <Rectangle Width="180" Height="40" Fill="Bisque" Canvas.Top="0" Canvas.Left="7" HorizontalAlignment="Center" VerticalAlignment="Top"/>
  101. <Polygon Points="0,20 10,0 20,20" Fill="Yellow" Canvas.Left="7" Canvas.Top="0" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" VerticalAlignment="Top">
  102. <Polygon.RenderTransform>
  103. <TransformGroup>
  104. <ScaleTransform/>
  105. <SkewTransform/>
  106. <RotateTransform Angle="90"/>
  107. <TranslateTransform/>
  108. </TransformGroup>
  109. </Polygon.RenderTransform>
  110. </Polygon>
  111. <Polygon Points="0,20 10,0 20,20" Fill="Yellow" Canvas.Left="168" Canvas.Top="0" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" VerticalAlignment="Center">
  112. <Polygon.RenderTransform>
  113. <TransformGroup>
  114. <ScaleTransform/>
  115. <SkewTransform/>
  116. <RotateTransform Angle="-90"/>
  117. <TranslateTransform/>
  118. </TransformGroup>
  119. </Polygon.RenderTransform>
  120. </Polygon>
  121. <Polygon Points="50,50 210,50 200,60 60,60"
  122. Fill="White"
  123. StrokeThickness="1" Canvas.Left="-30" Canvas.Top="-10"/>
  124. </Canvas>
  125. <Rectangle Width="100" Height="10" Fill="#E0F7FA" Canvas.Top="180" Canvas.Left="433" Stroke="LightGray" StrokeThickness="1" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  126. <Polygon Points="10,40 110,40 120,50 0,50" Fill="#E0F7FA" Canvas.Left="423" Canvas.Top="150" Stroke="LightGray" StrokeThickness="1" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  127. <Rectangle Fill="#E0F7FA" Width="120" Height="35" Canvas.Top="200" Canvas.Left="423" Stroke="LightGray" StrokeThickness="3" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  128. <Label Content="To AN Tower" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Top" HorizontalAlignment="Left" Canvas.Left="77" Canvas.Top="259"/>
  129. <Label Content="To AN Tower" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Top" HorizontalAlignment="Left" Canvas.Left="587" Canvas.Top="259"/>
  130. <Label Content="Res Return" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Top" HorizontalAlignment="Left" Canvas.Left="583" Canvas.Top="310"/>
  131. <Label Content="Res Return" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Top" HorizontalAlignment="Left" Canvas.Left="95" Canvas.Top="303"/>
  132. <Label Content="Res Source" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Top" HorizontalAlignment="Center" Canvas.Left="95" Canvas.Top="331"/>
  133. <Label Content="Res Source" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Top" HorizontalAlignment="Left" Canvas.Left="579" Canvas.Top="338"/>
  134. <Label Content="{Binding ElementName=self,Path=ModuleName}" Visibility="{Binding ElementName=self,Path=IsLeftEnable,Converter={StaticResource boolToVisibility2}}" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Top" HorizontalAlignment="Left" Canvas.Left="228" Canvas.Top="64"/>
  135. <Label Content="{Binding ElementName=self,Path=ModuleName}" Visibility="{Binding ElementName=self,Path=IsLeftEnable,Converter={StaticResource boolToVisibility}}" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Top" HorizontalAlignment="Left" Canvas.Left="450" Canvas.Top="64"/>
  136. <userControls:FlowPipe IsReverse="False" IsFlowing="{Binding ElementName=self,Path=CCRValve}" Height="8" Width="140" Canvas.Left="65" Canvas.Top="200" RotateTransformValue="0" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="-1"/>
  137. <userControls:FlowPipe IsReverse="False" IsFlowing="{Binding ElementName=self,Path=RinseValve}" Height="8" Width="140" Canvas.Left="67" Canvas.Top="224" RotateTransformValue="0" HorizontalAlignment="Left" VerticalAlignment="Center" Panel.ZIndex="-1"/>
  138. <userControls:FlowPipe IsReverse="True" IsFlowing="True" Height="8" Width="40" Canvas.Left="160" Canvas.Top="266" RotateTransformValue="0" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="-1"/>
  139. <userControls:FlowPipe IsReverse="True" IsFlowing="True" Height="8" Width="60" Canvas.Left="161" Canvas.Top="313" RotateTransformValue="0" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="-1"/>
  140. <userControls:FlowPipe IsReverse="True" IsFlowing="{Binding ElementName=self,Path=CAIsolationValve}" Height="8" Width="110" Canvas.Left="160" Canvas.Top="339" RotateTransformValue="0" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="-1"/>
  141. <userControls:FlowPipe IsReverse="True" IsFlowing="{Binding ElementName=self,Path=ANIsolationValve}" Height="8" Width="80" Canvas.Left="236" Canvas.Top="367" RotateTransformValue="0" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="-1"/>
  142. <userControls:FlowPipe IsReverse="False" IsFlowing="True" Height="8" Width="50" Canvas.Left="273" Canvas.Top="296" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="-1"/>
  143. <userControls:FlowPipe IsReverse="False" IsFlowing="True" Height="8" Width="20" Canvas.Left="225" Canvas.Top="301" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="-1"/>
  144. <userControls:FlowPipe IsReverse="False" IsFlowing="True" Height="8" Width="75" Canvas.Left="316" Canvas.Top="299" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="-1"/>
  145. <userControls:FlowPipe IsEnabled="{Binding ElementName=self,Path=IsLeftEnable,Converter={StaticResource BoolToBool}}" IsReverse="True" IsFlowing="{Binding ElementName=self,Path=CCRValve}" Height="8" Width="140" Canvas.Left="541" Canvas.Top="200" RotateTransformValue="0" HorizontalAlignment="Left" VerticalAlignment="Center" Panel.ZIndex="-1"/>
  146. <userControls:FlowPipe IsEnabled="{Binding ElementName=self,Path=IsLeftEnable,Converter={StaticResource BoolToBool}}" IsReverse="True" IsFlowing="{Binding ElementName=self,Path=RinseValve}" Height="8" Width="140" Canvas.Left="541" Canvas.Top="224" RotateTransformValue="0" HorizontalAlignment="Left" VerticalAlignment="Center" Panel.ZIndex="-1"/>
  147. <userControls:FlowPipe IsEnabled="{Binding ElementName=self,Path=IsLeftEnable,Converter={StaticResource BoolToBool}}" IsReverse="False" IsFlowing="True" Height="8" Width="40" Canvas.Left="542" Canvas.Top="263" RotateTransformValue="0" HorizontalAlignment="Left" VerticalAlignment="Center" Panel.ZIndex="-1"/>
  148. <userControls:FlowPipe IsEnabled="{Binding ElementName=self,Path=IsLeftEnable,Converter={StaticResource BoolToBool}}" IsReverse="False" IsFlowing="True" Height="8" Width="60" Canvas.Left="518" Canvas.Top="318" RotateTransformValue="0" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="-1"/>
  149. <userControls:FlowPipe IsEnabled="{Binding ElementName=self,Path=IsLeftEnable,Converter={StaticResource BoolToBool}}" IsReverse="True" IsFlowing="{Binding ElementName=self,Path=CAIsolationValve}" Height="8" Width="110" Canvas.Left="470" Canvas.Top="343" RotateTransformValue="0" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="-1"/>
  150. <userControls:FlowPipe IsEnabled="{Binding ElementName=self,Path=IsLeftEnable,Converter={StaticResource BoolToBool}}" IsReverse="True" IsFlowing="{Binding ElementName=self,Path=ANIsolationValve}" Height="8" Width="80" Canvas.Left="432" Canvas.Top="368" RotateTransformValue="0" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="-1"/>
  151. <userControls:FlowPipe IsEnabled="{Binding ElementName=self,Path=IsLeftEnable,Converter={StaticResource BoolToBool}}" IsReverse="False" IsFlowing="True" Height="8" Width="50" Canvas.Left="476" Canvas.Top="301" RotateTransformValue="90" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="-1"/>
  152. <userControls:FlowPipe IsEnabled="{Binding ElementName=self,Path=IsLeftEnable,Converter={StaticResource BoolToBool}}" IsReverse="False" IsFlowing="True" Height="8" Width="20" Canvas.Left="525" Canvas.Top="301" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="-1"/>
  153. <userControls:FlowPipe IsEnabled="{Binding ElementName=self,Path=IsLeftEnable,Converter={StaticResource BoolToBool}}" IsReverse="False" IsFlowing="True" Height="8" Width="75" Canvas.Left="440" Canvas.Top="298" RotateTransformValue="90" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="-1"/>
  154. <Grid Height="50" Width="100" Canvas.Left="99" Canvas.Top="188" HorizontalAlignment="Left" VerticalAlignment="Top" >
  155. <Grid.RowDefinitions>
  156. <RowDefinition Height="30"></RowDefinition>
  157. <RowDefinition Height="20"></RowDefinition>
  158. </Grid.RowDefinitions>
  159. <Grid Grid.Row="0">
  160. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  161. IsEnabled="{Binding ElementName=self,Path=IsLeftEnable}"
  162. Status="{Binding ElementName=self,Path=CCRValve}"
  163. IsCanEdit="True"
  164. ContextMenu="{StaticResource CCRValve}"/>
  165. </Grid>
  166. <Grid Grid.Row="1" >
  167. <Label Margin="35,-80,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="CCR" />
  168. </Grid>
  169. </Grid>
  170. <Grid Height="50" Width="100" Canvas.Left="99" Canvas.Top="213" HorizontalAlignment="Left" VerticalAlignment="Top" >
  171. <Grid.RowDefinitions>
  172. <RowDefinition Height="30"></RowDefinition>
  173. <RowDefinition Height="20"></RowDefinition>
  174. </Grid.RowDefinitions>
  175. <Grid Grid.Row="0">
  176. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  177. IsEnabled="{Binding ElementName=self,Path=IsLeftEnable}"
  178. Status="{Binding ElementName=self,Path=RinseValve}"
  179. IsCanEdit="True"
  180. ContextMenu="{StaticResource RinseValve}"/>
  181. </Grid>
  182. <Grid Grid.Row="1" >
  183. <Label Margin="30,-10,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="Rinse" />
  184. </Grid>
  185. </Grid>
  186. <Grid Height="50" Width="100" Canvas.Left="237" Canvas.Top="355" HorizontalAlignment="Left" VerticalAlignment="Top" >
  187. <Grid.RowDefinitions>
  188. <RowDefinition Height="30"></RowDefinition>
  189. <RowDefinition Height="20"></RowDefinition>
  190. </Grid.RowDefinitions>
  191. <Grid Grid.Row="0">
  192. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  193. IsEnabled="{Binding ElementName=self,Path=IsLeftEnable}"
  194. Status="{Binding ElementName=self,Path=ANIsolationValve}"
  195. IsCanEdit="True"
  196. ContextMenu="{StaticResource ANIsolationValve}"/>
  197. </Grid>
  198. <Grid Grid.Row="1" >
  199. <Label Margin="13,0,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="AN Isolation" />
  200. </Grid>
  201. </Grid>
  202. <Grid Height="50" Width="100" Canvas.Left="164" Canvas.Top="328" HorizontalAlignment="Left" VerticalAlignment="Top" >
  203. <Grid.RowDefinitions>
  204. <RowDefinition Height="30"></RowDefinition>
  205. <RowDefinition Height="20"></RowDefinition>
  206. </Grid.RowDefinitions>
  207. <Grid Grid.Row="0">
  208. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  209. IsEnabled="{Binding ElementName=self,Path=IsLeftEnable}"
  210. Status="{Binding ElementName=self,Path=CAIsolationValve}"
  211. IsCanEdit="True"
  212. ContextMenu="{StaticResource CAIsolationValve}"/>
  213. </Grid>
  214. <Grid Grid.Row="1" >
  215. <Label Margin="13,-20,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="CA Isolation" />
  216. </Grid>
  217. </Grid>
  218. <Grid Height="50" Width="100" Canvas.Left="538" Canvas.Top="188" HorizontalAlignment="Left" VerticalAlignment="Top" >
  219. <Grid.RowDefinitions>
  220. <RowDefinition Height="30"></RowDefinition>
  221. <RowDefinition Height="20"></RowDefinition>
  222. </Grid.RowDefinitions>
  223. <Grid Grid.Row="0">
  224. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  225. IsEnabled="{Binding ElementName=self,Path=IsLeftEnable,Converter={StaticResource BoolToBool}}"
  226. Status="{Binding ElementName=self,Path=CCRValve}"
  227. IsCanEdit="True"
  228. ContextMenu="{StaticResource CCRValve}"/>
  229. </Grid>
  230. <Grid Grid.Row="1" >
  231. <Label Margin="35,-80,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="CCR" />
  232. </Grid>
  233. </Grid>
  234. <Grid Height="50" Width="100" Canvas.Left="538" Canvas.Top="213" HorizontalAlignment="Left" VerticalAlignment="Top" >
  235. <Grid.ColumnDefinitions>
  236. <ColumnDefinition Width="21*"/>
  237. <ColumnDefinition Width="79*"/>
  238. </Grid.ColumnDefinitions>
  239. <Grid.RowDefinitions>
  240. <RowDefinition Height="30"></RowDefinition>
  241. <RowDefinition Height="20"></RowDefinition>
  242. </Grid.RowDefinitions>
  243. <Grid Grid.Row="0" Grid.ColumnSpan="2">
  244. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  245. IsEnabled="{Binding ElementName=self,Path=IsLeftEnable,Converter={StaticResource BoolToBool}}"
  246. Status="{Binding ElementName=self,Path=RinseValve}"
  247. IsCanEdit="True"
  248. ContextMenu="{StaticResource RinseValve}"/>
  249. </Grid>
  250. <Grid Grid.Row="1" Grid.ColumnSpan="2" >
  251. <Label Margin="30,-20,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="Rinse" />
  252. </Grid>
  253. </Grid>
  254. <Grid Height="50" Width="100" Canvas.Left="412" Canvas.Top="356" HorizontalAlignment="Left" VerticalAlignment="Top" >
  255. <Grid.RowDefinitions>
  256. <RowDefinition Height="30"></RowDefinition>
  257. <RowDefinition Height="20"></RowDefinition>
  258. </Grid.RowDefinitions>
  259. <Grid Grid.Row="0">
  260. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  261. IsEnabled="{Binding ElementName=self,Path=IsLeftEnable,Converter={StaticResource BoolToBool}}"
  262. Status="{Binding ElementName=self,Path=ANIsolationValve}"
  263. IsCanEdit="True"
  264. ContextMenu="{StaticResource ANIsolationValve}"/>
  265. </Grid>
  266. <Grid Grid.Row="1" >
  267. <Label Margin="13,0,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="AN Isolation" />
  268. </Grid>
  269. </Grid>
  270. <Grid Height="50" Width="100" Canvas.Left="466" Canvas.Top="331" HorizontalAlignment="Left" VerticalAlignment="Top" >
  271. <Grid.RowDefinitions>
  272. <RowDefinition Height="30"></RowDefinition>
  273. <RowDefinition Height="20"></RowDefinition>
  274. </Grid.RowDefinitions>
  275. <Grid Grid.Row="0">
  276. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  277. IsEnabled="{Binding ElementName=self,Path=IsLeftEnable,Converter={StaticResource BoolToBool}}"
  278. Status="{Binding ElementName=self,Path=CAIsolationValve}"
  279. IsCanEdit="True"
  280. ContextMenu="{StaticResource CAIsolationValve}"/>
  281. </Grid>
  282. <Grid Grid.Row="1" >
  283. <Label Margin="13,-20,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="CA Isolation" />
  284. </Grid>
  285. </Grid>
  286. </Canvas>
  287. </UserControl>