VPWMainUIControl.xaml 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <UserControl x:Class="PunkHPX8_Themes.UserControls.VPWMainUIControl"
  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="800" 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. <Style x:Key="DisableContextMenuStyle" TargetType="userControls:Pump1">
  17. <Setter Property="IsEnabled" Value="False"/>
  18. </Style>
  19. <ContextMenu x:Key="DIWProcessValve">
  20. <MenuItem Header="Open" Click="OpenDIWProcessValve_Click"/>
  21. <MenuItem Header="Close" Click="CloseDIWProcessValve_Click"/>
  22. </ContextMenu>
  23. <ContextMenu x:Key="DIWDegasValve">
  24. <MenuItem Header="Open" Click="OpenDIWDegasValve_Click"/>
  25. <MenuItem Header="Close" Click="CloseDIWDegasValve_Click"/>
  26. </ContextMenu>
  27. <ContextMenu x:Key="DegasAdjustValve">
  28. <MenuItem Header="Open" Click="OpenDegasAdjustValve_Click"/>
  29. <MenuItem Header="Close" Click="CloseDegasAdjustValve_Click"/>
  30. </ContextMenu>
  31. <ContextMenu x:Key="VPW1VACValve">
  32. <MenuItem Header="Open" Click="OpenVPW1VACValve_Click"/>
  33. <MenuItem Header="Close" Click="CloseVPW1VACValve_Click"/>
  34. </ContextMenu>
  35. <ContextMenu x:Key="VPW2VACValve">
  36. <MenuItem Header="Open" Click="OpenVPW2VACValve_Click"/>
  37. <MenuItem Header="Close" Click="CloseVPW2VACValve_Click"/>
  38. </ContextMenu>
  39. </UserControl.Resources>
  40. <Canvas>
  41. <Grid Height="50" Width="100" Canvas.Left="50" Canvas.Top="98" >
  42. <Grid.RowDefinitions>
  43. <RowDefinition Height="30"></RowDefinition>
  44. <RowDefinition Height="20"></RowDefinition>
  45. </Grid.RowDefinitions>
  46. <Grid Grid.Row="0">
  47. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  48. Status="{Binding ElementName=self,Path=DIWProcessValve}"
  49. IsCanEdit="True"
  50. ContextMenu="{StaticResource DIWProcessValve}"/>
  51. </Grid>
  52. <Grid Grid.Row="1">
  53. <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="DIW Process" />
  54. </Grid>
  55. </Grid>
  56. <Grid Height="50" Width="100" Canvas.Left="182" Canvas.Top="100" >
  57. <Grid.RowDefinitions>
  58. <RowDefinition Height="30"></RowDefinition>
  59. <RowDefinition Height="20"></RowDefinition>
  60. </Grid.RowDefinitions>
  61. <Grid Grid.Row="0">
  62. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  63. Status="{Binding ElementName=self,Path=DIWDegasValve}"
  64. IsCanEdit="True"
  65. ContextMenu="{StaticResource DIWDegasValve}"/>
  66. </Grid>
  67. <Grid Grid.Row="1">
  68. <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="DIW Degas" />
  69. </Grid>
  70. </Grid>
  71. <Grid Height="50" Width="100" Canvas.Left="321" Canvas.Top="100" >
  72. <Grid.RowDefinitions>
  73. <RowDefinition Height="30"></RowDefinition>
  74. <RowDefinition Height="20"></RowDefinition>
  75. </Grid.RowDefinitions>
  76. <Grid Grid.Row="0">
  77. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  78. Status="{Binding ElementName=self,Path=DegasAdjustValve}"
  79. IsCanEdit="True"
  80. ContextMenu="{StaticResource DegasAdjustValve}"/>
  81. </Grid>
  82. <Grid Grid.Row="1">
  83. <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="Degas Adjust" />
  84. </Grid>
  85. </Grid>
  86. <Grid Height="50" Width="100" Canvas.Left="474" Canvas.Top="102" >
  87. <Grid.RowDefinitions>
  88. <RowDefinition Height="30"></RowDefinition>
  89. <RowDefinition Height="20"></RowDefinition>
  90. </Grid.RowDefinitions>
  91. <Grid Grid.Row="0">
  92. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  93. Status="{Binding ElementName=self,Path=VPW1VACValve}"
  94. IsCanEdit="True"
  95. ContextMenu="{StaticResource VPW1VACValve}"/>
  96. </Grid>
  97. <Grid Grid.Row="1">
  98. <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="VPW 1 VAC" />
  99. </Grid>
  100. </Grid>
  101. <Grid Height="50" Width="100" Canvas.Left="624" Canvas.Top="108" >
  102. <Grid.RowDefinitions>
  103. <RowDefinition Height="30"></RowDefinition>
  104. <RowDefinition Height="20"></RowDefinition>
  105. </Grid.RowDefinitions>
  106. <Grid Grid.Row="0">
  107. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  108. Status="{Binding ElementName=self,Path=VPW2VACValve}"
  109. IsCanEdit="True"
  110. ContextMenu="{StaticResource VPW2VACValve}"/>
  111. </Grid>
  112. <Grid Grid.Row="1">
  113. <Label Margin="12,0,0,0" Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="VPW 2 VAC" />
  114. </Grid>
  115. </Grid>
  116. <Grid Height="50" Width="120" Canvas.Left="330" Canvas.Top="24" >
  117. <Grid.RowDefinitions>
  118. <RowDefinition Height="20"></RowDefinition>
  119. <RowDefinition Height="30"></RowDefinition>
  120. </Grid.RowDefinitions>
  121. <Grid.ColumnDefinitions>
  122. <ColumnDefinition Width="60"></ColumnDefinition>
  123. <ColumnDefinition Width="60"></ColumnDefinition>
  124. </Grid.ColumnDefinitions>
  125. <Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,0,10,0">
  126. <Label Content="Total Flow" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0"/>
  127. </Grid>
  128. <Border Grid.Row="1" Grid.Column="0" Margin="5,5,5,5" Background="Black" Width="50" VerticalAlignment="Center" HorizontalAlignment="Right">
  129. <TextBlock Text="{Binding ElementName=self,Path=TotalFlow}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  130. </Border>
  131. <Border Grid.Row="1" Grid.Column="1" Margin="0,5,0,5 " Background="Black" Height="22" Width="40" VerticalAlignment="Center" HorizontalAlignment="Left">
  132. <TextBlock Text="L/min" Foreground="Lime" FontSize="12" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  133. </Border>
  134. </Grid>
  135. <userControls:ReservoirPump IsEnabled="{Binding IsEnabled}" ModuleName="{Binding ModuleName}" PumpType="BoosterPump" RotateTransformValue="0" IsOpenPump="{Binding IsBoosterPumpOpen,Mode=TwoWay}" Height="60" Width="60" Tag="26" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="146" Canvas.Top="194" />
  136. <userControls:ReservoirPump IsEnabled="{Binding IsEnabled}" ModuleName="{Binding ModuleName}" PumpType="DegasPump" RotateTransformValue="0" IsOpenPump="{Binding IsDegasPumpOpen,Mode=TwoWay}" Height="60" Width="60" Tag="26" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="290" Canvas.Top="195" />
  137. <userControls:ReservoirPump IsEnabled="{Binding IsEnabled}" ModuleName="{Binding ModuleName}" PumpType="VacuumPump" RotateTransformValue="0" IsOpenPump="{Binding IsVacuumPumpOpen,Mode=TwoWay}" Height="60" Width="60" Tag="26" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="432" Canvas.Top="199" />
  138. <Label Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="Booster Pump" Canvas.Left="128" Canvas.Top="266" />
  139. <Label Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="Degas Pump" Canvas.Left="273" Canvas.Top="268" />
  140. <Label Height="20" Width="100" FontSize="10" FontWeight="Bold" Content="Vacuum Pump" Canvas.Left="423" Canvas.Top="270" />
  141. </Canvas>
  142. </UserControl>