SetParameterView.xaml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <UserControl x:Class="FurnaceUI.Views.Operations.SetParameterView"
  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.Operations" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:cal="http://www.caliburn.org"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="1000">
  9. <Grid>
  10. <Canvas Margin="20,10,0,0">
  11. <Grid>
  12. <Grid.RowDefinitions>
  13. <RowDefinition></RowDefinition>
  14. <RowDefinition Height="40"></RowDefinition>
  15. <RowDefinition Height="40"></RowDefinition>
  16. <RowDefinition Height="40"></RowDefinition>
  17. <RowDefinition Height="40"></RowDefinition>
  18. <RowDefinition Height="40"></RowDefinition>
  19. <RowDefinition Height="40"></RowDefinition>
  20. <RowDefinition Height="40"></RowDefinition>
  21. </Grid.RowDefinitions>
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition Width="140"></ColumnDefinition>
  24. <ColumnDefinition Width="70"></ColumnDefinition>
  25. <ColumnDefinition></ColumnDefinition>
  26. <ColumnDefinition></ColumnDefinition>
  27. </Grid.ColumnDefinitions>
  28. <Label Style="{DynamicResource Table_TitleStyle}" Grid.Row="0" Grid.ColumnSpan="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  29. <Label.Content>
  30. <TextBlock Text="Match" Foreground="White"></TextBlock>
  31. </Label.Content>
  32. </Label>
  33. <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">
  34. <TextBlock Text="Auto/Manual" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  35. </Border>
  36. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="1" Padding="5,1">
  37. <TextBlock Text="{Binding AutoMode}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  38. </Border>
  39. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="2" Padding="5,1">
  40. <Button Content="Auto" Width="88" Height="30" Margin="10,0,10,0">
  41. <i:Interaction.Triggers>
  42. <i:EventTrigger EventName="Click">
  43. <cal:ActionMessage MethodName="SetAutoMode">
  44. <cal:Parameter Value="0" />
  45. </cal:ActionMessage>
  46. </i:EventTrigger>
  47. </i:Interaction.Triggers>
  48. </Button>
  49. </Border>
  50. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="3" Padding="5,1">
  51. <Button Content="Manual" Width="88" Height="30" Margin="10,0,10,0">
  52. <i:Interaction.Triggers>
  53. <i:EventTrigger EventName="Click">
  54. <cal:ActionMessage MethodName="SetAutoMode">
  55. <cal:Parameter Value="1" />
  56. </cal:ActionMessage>
  57. </i:EventTrigger>
  58. </i:Interaction.Triggers>
  59. </Button>
  60. </Border>
  61. <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">
  62. <TextBlock Text="C1 Position" 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 ="1" Padding="5,1">
  65. <TextBlock Text="{Binding Capacitance1PositionSetpoint}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  66. </Border>
  67. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column ="2" Padding="5,1">
  68. <TextBox Text="" x:Name="tbC1Position" HorizontalContentAlignment="Center" Width="90" Height="35" Tag="Number" Margin="10,0,0,0"></TextBox>
  69. </Border>
  70. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column ="3" Padding="5,1">
  71. <Button Content="Set" Width="88" Height="30" Margin="10,0,10,0">
  72. <i:Interaction.Triggers>
  73. <i:EventTrigger EventName="Click">
  74. <cal:ActionMessage MethodName="C1SaveValue">
  75. <cal:Parameter Value="{Binding ElementName=tbC1Position}" />
  76. </cal:ActionMessage>
  77. </i:EventTrigger>
  78. </i:Interaction.Triggers>
  79. </Button>
  80. </Border>
  81. <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">
  82. <TextBlock Text="C2 Position" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  83. </Border>
  84. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="1" Padding="5,1">
  85. <TextBlock Text="{Binding Capacitance2PositionSetpoint}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  86. </Border>
  87. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="2" Padding="5,1">
  88. <TextBox Text="" x:Name="tbC2Position" HorizontalContentAlignment="Center" Width="90" Height="35" Tag="Number" Margin="10,0,0,0"></TextBox>
  89. </Border>
  90. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="3" Padding="5,1">
  91. <Button Content="Set" Width="88" Height="30" Margin="10,0,10,0">
  92. <i:Interaction.Triggers>
  93. <i:EventTrigger EventName="Click">
  94. <cal:ActionMessage MethodName="C2SaveValue">
  95. <cal:Parameter Value="{Binding ElementName=tbC2Position}" />
  96. </cal:ActionMessage>
  97. </i:EventTrigger>
  98. </i:Interaction.Triggers>
  99. </Button>
  100. </Border>
  101. <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">
  102. <TextBlock Text="C1 Current Position" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  103. </Border>
  104. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="1" Padding="5,1">
  105. <TextBlock Text="{Binding Capacitance1PositionFeedBack}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  106. </Border>
  107. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="2" Padding="5,1">
  108. </Border>
  109. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="3" Padding="5,1">
  110. </Border>
  111. <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">
  112. <TextBlock Text="C2 Current Position" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  113. </Border>
  114. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column ="1" Padding="5,1">
  115. <TextBlock Text="{Binding Capacitance2PositionFeedBack}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  116. </Border>
  117. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column ="2" Padding="5,1">
  118. </Border>
  119. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column ="3" Padding="5,1">
  120. </Border>
  121. <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">
  122. <TextBlock Text="Vpp" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  123. </Border>
  124. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="6" Grid.Column ="1" Padding="5,1">
  125. <TextBlock Text="{Binding VppFeedBack}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  126. </Border>
  127. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="6" Grid.Column ="2" Padding="5,1">
  128. </Border>
  129. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="6" Grid.Column ="3" Padding="5,1">
  130. </Border>
  131. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="7" Grid.Column="0" Padding="5,1,0,1">
  132. <TextBlock Text="Status" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  133. </Border>
  134. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="7" Grid.Column ="1" Padding="5,1">
  135. <TextBlock Text="" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  136. </Border>
  137. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="7" Grid.Column ="2" Padding="5,1">
  138. <Button Content="Reset" Width="88" Height="30" Margin="10,0,10,0">
  139. <i:Interaction.Triggers>
  140. <i:EventTrigger EventName="Click">
  141. <cal:ActionMessage MethodName="Reset">
  142. </cal:ActionMessage>
  143. </i:EventTrigger>
  144. </i:Interaction.Triggers>
  145. </Button>
  146. </Border>
  147. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="7" Grid.Column ="3" Padding="5,1">
  148. </Border>
  149. </Grid>
  150. <Grid Canvas.Left="480">
  151. <Grid.RowDefinitions>
  152. <RowDefinition ></RowDefinition>
  153. <RowDefinition Height="40"></RowDefinition>
  154. <RowDefinition Height="40"></RowDefinition>
  155. <RowDefinition Height="40"></RowDefinition>
  156. <RowDefinition Height="40"></RowDefinition>
  157. <RowDefinition Height="40"></RowDefinition>
  158. </Grid.RowDefinitions>
  159. <Grid.ColumnDefinitions>
  160. <ColumnDefinition Width="120"></ColumnDefinition>
  161. <ColumnDefinition Width="70"></ColumnDefinition>
  162. <ColumnDefinition></ColumnDefinition>
  163. <ColumnDefinition></ColumnDefinition>
  164. </Grid.ColumnDefinitions>
  165. <Label Style="{DynamicResource Table_TitleStyle}" Grid.Row="0" Grid.ColumnSpan="4" HorizontalContentAlignment="Center" VerticalContentAlignment="Center">
  166. <Label.Content>
  167. <TextBlock Text="RF" Foreground="White"></TextBlock>
  168. </Label.Content>
  169. </Label>
  170. <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">
  171. <TextBlock Text="Set Power" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  172. </Border>
  173. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="1" Padding="5,1">
  174. <TextBlock Text="{Binding PowerSetPoint}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  175. </Border>
  176. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="2" Padding="5,1">
  177. <TextBox Text="" x:Name="tbPower" HorizontalContentAlignment="Center" Width="90" Height="35" Tag="Number" Margin="10,0,0,0"></TextBox>
  178. </Border>
  179. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="1" Grid.Column ="3" Padding="5,1">
  180. <Button Content="Set" Width="88" Height="30" Margin="10,0,10,0">
  181. <i:Interaction.Triggers>
  182. <i:EventTrigger EventName="Click">
  183. <cal:ActionMessage MethodName="PowerSaveValue">
  184. <cal:Parameter Value="{Binding ElementName=tbPower}" />
  185. </cal:ActionMessage>
  186. </i:EventTrigger>
  187. </i:Interaction.Triggers>
  188. </Button>
  189. </Border>
  190. <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">
  191. <TextBlock Text="Forward Power" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  192. </Border>
  193. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column ="1" Padding="5,1">
  194. <TextBlock Text="{Binding ForwardPower}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  195. </Border>
  196. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column ="2" Padding="5,1">
  197. </Border>
  198. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="2" Grid.Column ="3" Padding="5,1">
  199. </Border>
  200. <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">
  201. <TextBlock Text="Reflected Power" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  202. </Border>
  203. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="1" Padding="5,1">
  204. <TextBlock Text="{Binding ReflectPower}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  205. </Border>
  206. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="2" Padding="5,1">
  207. </Border>
  208. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="3" Grid.Column ="3" Padding="5,1">
  209. </Border>
  210. <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">
  211. <TextBlock Text="Status" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  212. </Border>
  213. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="1" Padding="5,1">
  214. <TextBlock Text="{Binding RfPowerDeviceData.IsRfAlarm}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  215. </Border>
  216. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="2" Padding="5,1">
  217. </Border>
  218. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="4" Grid.Column ="3" Padding="5,1">
  219. </Border>
  220. <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">
  221. <TextBlock Text="On/Off" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" VerticalAlignment="Center" />
  222. </Border>
  223. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column ="1" Padding="5,1">
  224. <TextBlock Text="{Binding IsPowerOn}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14"/>
  225. </Border>
  226. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column ="2" Padding="5,1">
  227. <Button Content="On" Width="88" Height="30" Margin="10,0,10,0">
  228. <i:Interaction.Triggers>
  229. <i:EventTrigger EventName="Click">
  230. <cal:ActionMessage MethodName="SetPower">
  231. <cal:Parameter Value="On" />
  232. </cal:ActionMessage>
  233. </i:EventTrigger>
  234. </i:Interaction.Triggers>
  235. </Button>
  236. </Border>
  237. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1" Background="{DynamicResource Table_BG_Content}" Grid.Row="5" Grid.Column ="3" Padding="5,1">
  238. <Button Content="Off" Width="88" Height="30" Margin="10,0,10,0">
  239. <i:Interaction.Triggers>
  240. <i:EventTrigger EventName="Click">
  241. <cal:ActionMessage MethodName="SetPower">
  242. <cal:Parameter Value="Off" />
  243. </cal:ActionMessage>
  244. </i:EventTrigger>
  245. </i:Interaction.Triggers>
  246. </Button>
  247. </Border>
  248. </Grid>
  249. </Canvas>
  250. </Grid>
  251. </UserControl>