MFCVerificationView.xaml 102 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342
  1. <UserControl x:Class="VirgoUI.Client.Models.PMs.MFCVerificationView"
  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:VirgoUI.Client.Models.PMs"
  7. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  8. xmlns:wf ="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
  9. xmlns:cal="http://www.caliburn.org"
  10. xmlns:wfi ="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
  11. xmlns:sciChart="http://schemas.abtsoftware.co.uk/scichart"
  12. mc:Ignorable="d" >
  13. <Grid>
  14. <Grid HorizontalAlignment="Left" Margin="10">
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="399"/>
  17. <RowDefinition Height="Auto"/>
  18. <RowDefinition Height="Auto"/>
  19. <RowDefinition Height="Auto"/>
  20. </Grid.RowDefinitions>
  21. <TabControl>
  22. <TabItem Header="MFC1" x:Name="tabMFC1">
  23. <StackPanel Height="478" Width="1500" HorizontalAlignment="Left" IsEnabled="{Binding MFC1IsEnable}">
  24. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Content}" Width="1350" HorizontalAlignment="Left">
  25. <StackPanel Orientation="Horizontal" Height="30">
  26. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  27. <TextBlock Text="Gas Name" Width="85" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" Background="{Binding MFC1Background}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>
  28. </Border>
  29. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{Binding MFC1BackGround}" Padding="5,1">
  30. <TextBlock Text="{Binding MFC1DeviceData.DisplayName}" Width="200" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>
  31. </Border>
  32. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  33. <TextBlock Text="Setpoint(sccm)" Width="100" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>
  34. </Border>
  35. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  36. <ComboBox x:Name="cbMFC1Setpoint" IsEditable="True" Height="25" Width="150" ItemsSource="{Binding MFC1VerificationPoints}" SelectedIndex="0" VerticalAlignment="Center" >
  37. <ComboBox.Resources>
  38. <Style TargetType="ComboBoxItem">
  39. <Setter Property="Width" Value="150" />
  40. </Style>
  41. </ComboBox.Resources>
  42. </ComboBox>
  43. </Border>
  44. <Border BorderBrush="{DynamicResource Table_BD}" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  45. <StackPanel Orientation="Horizontal">
  46. <Button Content="Start One Point" Width="150" Height="25" FontSize="14" Margin="20,0,0,0" IsEnabled="{Binding IsVerificationButtonEnable}">
  47. <i:Interaction.Triggers>
  48. <i:EventTrigger EventName="Click">
  49. <cal:ActionMessage MethodName="StartVerification">
  50. <cal:Parameter Value="{Binding ElementName=tabMFC1, Path=Header}" />
  51. <cal:Parameter Value="{Binding ElementName=cbMFC1Setpoint, Path=Text}" />
  52. <cal:Parameter Value="1" />
  53. </cal:ActionMessage>
  54. </i:EventTrigger>
  55. </i:Interaction.Triggers>
  56. </Button>
  57. <Button Content="Start Ten Points" Width="150" Height="25" FontSize="14" Margin="30,0,0,0" IsEnabled="{Binding IsVerificationButtonEnable}">
  58. <i:Interaction.Triggers>
  59. <i:EventTrigger EventName="Click">
  60. <cal:ActionMessage MethodName="StartVerification">
  61. <cal:Parameter Value="{Binding ElementName=tabMFC1, Path=Header}" />
  62. <cal:Parameter Value="{Binding ElementName=cbMFC1Setpoint, Path=SelectedItem}" />
  63. <cal:Parameter Value="10" />
  64. </cal:ActionMessage>
  65. </i:EventTrigger>
  66. </i:Interaction.Triggers>
  67. </Button>
  68. <Button Content="Abort" Width="150" Height="25" FontSize="14" Margin="30,0,0,0" >
  69. <i:Interaction.Triggers>
  70. <i:EventTrigger EventName="Click">
  71. <cal:ActionMessage MethodName="Abort">
  72. </cal:ActionMessage>
  73. </i:EventTrigger>
  74. </i:Interaction.Triggers>
  75. </Button>
  76. </StackPanel>
  77. </Border>
  78. </StackPanel>
  79. </Border>
  80. <Label Content="Verification Data:" Foreground="Black" Height="25" VerticalAlignment="Center"/>
  81. <DataGrid Grid.Row="3" AlternationCount="2" HorizontalAlignment="Left" CanUserAddRows="False" AutoGenerateColumns="False" RowHeaderWidth="0"
  82. VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.VirtualizationMode="Recycling" HorizontalContentAlignment="Center"
  83. ItemsSource="{Binding MFC1VerificationData}" x:Name="verificationDataGridMFC1" Height="308">
  84. <DataGrid.Columns>
  85. <DataGridTemplateColumn Header="Setpoint (sccm)" Width="200">
  86. <DataGridTemplateColumn.CellTemplate>
  87. <DataTemplate>
  88. <TextBlock Text="{Binding Path=Setpoint, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  89. </DataTemplate>
  90. </DataGridTemplateColumn.CellTemplate>
  91. </DataGridTemplateColumn>
  92. <DataGridTemplateColumn Header="Feedback (sccm)" Width="200">
  93. <DataGridTemplateColumn.CellTemplate>
  94. <DataTemplate>
  95. <TextBlock Text="{Binding Path=CalculateValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  96. </DataTemplate>
  97. </DataGridTemplateColumn.CellTemplate>
  98. </DataGridTemplateColumn>
  99. <DataGridTemplateColumn Header="Elapsed time (sec.)" Width="200">
  100. <DataGridTemplateColumn.CellTemplate>
  101. <DataTemplate>
  102. <TextBlock Text="{Binding Path=ElapseTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  103. </DataTemplate>
  104. </DataGridTemplateColumn.CellTemplate>
  105. </DataGridTemplateColumn>
  106. <DataGridTemplateColumn Header="Deviation" Width="200">
  107. <DataGridTemplateColumn.CellTemplate>
  108. <DataTemplate>
  109. <TextBlock Text="{Binding Path=Deviation, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}%}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  110. </DataTemplate>
  111. </DataGridTemplateColumn.CellTemplate>
  112. </DataGridTemplateColumn>
  113. <DataGridTemplateColumn Header="Result" Width="200">
  114. <DataGridTemplateColumn.CellTemplate>
  115. <DataTemplate>
  116. <Border Background="{Binding Path=ResultBackground, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
  117. <TextBlock Text="{Binding Path=Result, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged }" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  118. </Border>
  119. </DataTemplate>
  120. </DataGridTemplateColumn.CellTemplate>
  121. </DataGridTemplateColumn>
  122. </DataGrid.Columns>
  123. </DataGrid>
  124. </StackPanel>
  125. </TabItem>
  126. <TabItem Header="MFC2" x:Name="tabMFC2">
  127. <StackPanel Height="478" Width="1500" HorizontalAlignment="Left" IsEnabled="{Binding MFC2IsEnable}">
  128. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Content}" Width="1200" HorizontalAlignment="Left">
  129. <StackPanel Orientation="Horizontal" Height="30">
  130. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  131. <TextBlock Text="Gas Name" Width="85" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" Background="{Binding MFC2Background}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>
  132. </Border>
  133. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{Binding MFC2BackGround}" Padding="5,1">
  134. <TextBlock Text="{Binding MFC2DeviceData.DisplayName}" Width="200" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>
  135. </Border>
  136. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  137. <TextBlock Text="Setpoint(sccm)" Width="100" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>
  138. </Border>
  139. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  140. <ComboBox x:Name="cbMFC2Setpoint" IsEditable="True" Height="25" Width="150" ItemsSource="{Binding MFC2VerificationPoints}" SelectedIndex="0" VerticalAlignment="Center" >
  141. <ComboBox.Resources>
  142. <Style TargetType="ComboBoxItem">
  143. <Setter Property="Width" Value="150" />
  144. </Style>
  145. </ComboBox.Resources>
  146. </ComboBox>
  147. </Border>
  148. <Border BorderBrush="{DynamicResource Table_BD}" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  149. <StackPanel Orientation="Horizontal">
  150. <Button Content="Start One Point" Width="150" Height="25" FontSize="14" Margin="20,0,0,0" IsEnabled="{Binding IsVerificationButtonEnable}">
  151. <i:Interaction.Triggers>
  152. <i:EventTrigger EventName="Click">
  153. <cal:ActionMessage MethodName="StartVerification">
  154. <cal:Parameter Value="{Binding ElementName=tabMFC2, Path=Header}" />
  155. <cal:Parameter Value="{Binding ElementName=cbMFC2Setpoint, Path=SelectedValue}" />
  156. <cal:Parameter Value="1" />
  157. </cal:ActionMessage>
  158. </i:EventTrigger>
  159. </i:Interaction.Triggers>
  160. </Button>
  161. <Button Content="Start Ten Points" Width="150" Height="25" FontSize="14" Margin="30,0,0,0" IsEnabled="{Binding IsVerificationButtonEnable}">
  162. <i:Interaction.Triggers>
  163. <i:EventTrigger EventName="Click">
  164. <cal:ActionMessage MethodName="StartVerification">
  165. <cal:Parameter Value="{Binding ElementName=tabMFC2, Path=Header}" />
  166. <cal:Parameter Value="{Binding ElementName=cbMFC2Setpoint, Path=SelectedValue}" />
  167. <cal:Parameter Value="10" />
  168. </cal:ActionMessage>
  169. </i:EventTrigger>
  170. </i:Interaction.Triggers>
  171. </Button>
  172. <Button Content="Abort" Width="150" Height="25" FontSize="14" Margin="30,0,0,0" >
  173. <i:Interaction.Triggers>
  174. <i:EventTrigger EventName="Click">
  175. <cal:ActionMessage MethodName="Abort">
  176. </cal:ActionMessage>
  177. </i:EventTrigger>
  178. </i:Interaction.Triggers>
  179. </Button>
  180. </StackPanel>
  181. </Border>
  182. </StackPanel>
  183. </Border>
  184. <Label Content="Verification Data:" Foreground="Black" Height="25" VerticalAlignment="Center"/>
  185. <DataGrid Grid.Row="3" AlternationCount="2" HorizontalAlignment="Left" CanUserAddRows="False" AutoGenerateColumns="False" RowHeaderWidth="0"
  186. VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.VirtualizationMode="Recycling" HorizontalContentAlignment="Center"
  187. ItemsSource="{Binding MFC2VerificationData}" x:Name="verificationDataGridMFC2" Height="308">
  188. <DataGrid.Columns>
  189. <DataGridTemplateColumn Header="Setpoint (sccm)" Width="200">
  190. <DataGridTemplateColumn.CellTemplate>
  191. <DataTemplate>
  192. <TextBlock Text="{Binding Path=Setpoint, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  193. </DataTemplate>
  194. </DataGridTemplateColumn.CellTemplate>
  195. </DataGridTemplateColumn>
  196. <DataGridTemplateColumn Header="Calculate Flow (sccm)" Width="200">
  197. <DataGridTemplateColumn.CellTemplate>
  198. <DataTemplate>
  199. <TextBlock Text="{Binding Path=CalculateValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  200. </DataTemplate>
  201. </DataGridTemplateColumn.CellTemplate>
  202. </DataGridTemplateColumn>
  203. <DataGridTemplateColumn Header="Elapsed time (sec.)" Width="200">
  204. <DataGridTemplateColumn.CellTemplate>
  205. <DataTemplate>
  206. <TextBlock Text="{Binding Path=ElapseTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  207. </DataTemplate>
  208. </DataGridTemplateColumn.CellTemplate>
  209. </DataGridTemplateColumn>
  210. <DataGridTemplateColumn Header="Deviation (%)" Width="200">
  211. <DataGridTemplateColumn.CellTemplate>
  212. <DataTemplate>
  213. <TextBlock Text="{Binding Path=Deviation, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  214. </DataTemplate>
  215. </DataGridTemplateColumn.CellTemplate>
  216. </DataGridTemplateColumn>
  217. <DataGridTemplateColumn Header="Result" Width="200">
  218. <DataGridTemplateColumn.CellTemplate>
  219. <DataTemplate>
  220. <Border Background="{Binding Path=ResultBackground, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
  221. <TextBlock Text="{Binding Path=Result, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  222. </Border>
  223. </DataTemplate>
  224. </DataGridTemplateColumn.CellTemplate>
  225. </DataGridTemplateColumn>
  226. </DataGrid.Columns>
  227. </DataGrid>
  228. </StackPanel>
  229. </TabItem>
  230. <TabItem Header="MFC3" x:Name="tabMFC3">
  231. <StackPanel Height="478" Width="1500" HorizontalAlignment="Left" IsEnabled="{Binding MFC3IsEnable}">
  232. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Content}" Width="1200" HorizontalAlignment="Left">
  233. <StackPanel Orientation="Horizontal" Height="30">
  234. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  235. <TextBlock Text="Gas Name" Width="85" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" Background="{Binding MFC3Background}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>
  236. </Border>
  237. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{Binding MFC3BackGround}" Padding="5,1">
  238. <TextBlock Text="{Binding MFC3DeviceData.DisplayName}" Width="200" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>
  239. </Border>
  240. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  241. <TextBlock Text="Setpoint(sccm)" Width="100" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>
  242. </Border>
  243. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  244. <ComboBox x:Name="cbMFC3Setpoint" IsEditable="True" Height="25" Width="150" ItemsSource="{Binding MFC3VerificationPoints}" SelectedIndex="0" VerticalAlignment="Center" >
  245. <ComboBox.Resources>
  246. <Style TargetType="ComboBoxItem">
  247. <Setter Property="Width" Value="150" />
  248. </Style>
  249. </ComboBox.Resources>
  250. </ComboBox>
  251. </Border>
  252. <Border BorderBrush="{DynamicResource Table_BD}" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  253. <StackPanel Orientation="Horizontal">
  254. <Button Content="Start One Point" Width="150" Height="25" FontSize="14" Margin="20,0,0,0" IsEnabled="{Binding IsVerificationButtonEnable}">
  255. <i:Interaction.Triggers>
  256. <i:EventTrigger EventName="Click">
  257. <cal:ActionMessage MethodName="StartVerification">
  258. <cal:Parameter Value="{Binding ElementName=tabMFC3, Path=Header}" />
  259. <cal:Parameter Value="{Binding ElementName=cbMFC3Setpoint, Path=SelectedValue}" />
  260. <cal:Parameter Value="1" />
  261. </cal:ActionMessage>
  262. </i:EventTrigger>
  263. </i:Interaction.Triggers>
  264. </Button>
  265. <Button Content="Start Ten Points" Width="150" Height="25" FontSize="14" Margin="30,0,0,0" IsEnabled="{Binding IsVerificationButtonEnable}">
  266. <i:Interaction.Triggers>
  267. <i:EventTrigger EventName="Click">
  268. <cal:ActionMessage MethodName="StartVerification">
  269. <cal:Parameter Value="{Binding ElementName=tabMFC3, Path=Header}" />
  270. <cal:Parameter Value="{Binding ElementName=cbMFC3Setpoint, Path=SelectedValue}" />
  271. <cal:Parameter Value="10" />
  272. </cal:ActionMessage>
  273. </i:EventTrigger>
  274. </i:Interaction.Triggers>
  275. </Button>
  276. <Button Content="Abort" Width="150" Height="25" FontSize="14" Margin="30,0,0,0" >
  277. <i:Interaction.Triggers>
  278. <i:EventTrigger EventName="Click">
  279. <cal:ActionMessage MethodName="Abort">
  280. </cal:ActionMessage>
  281. </i:EventTrigger>
  282. </i:Interaction.Triggers>
  283. </Button>
  284. </StackPanel>
  285. </Border>
  286. </StackPanel>
  287. </Border>
  288. <Label Content="Verification Data:" Foreground="Black" Height="25" VerticalAlignment="Center"/>
  289. <DataGrid Grid.Row="3" AlternationCount="2" HorizontalAlignment="Left" CanUserAddRows="False" AutoGenerateColumns="False" RowHeaderWidth="0"
  290. VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.VirtualizationMode="Recycling" HorizontalContentAlignment="Center"
  291. ItemsSource="{Binding MFC3VerificationData}" x:Name="verificationDataGridMFC3" Height="308">
  292. <DataGrid.Columns>
  293. <DataGridTemplateColumn Header="Setpoint (sccm)" Width="200">
  294. <DataGridTemplateColumn.CellTemplate>
  295. <DataTemplate>
  296. <TextBlock Text="{Binding Path=Setpoint, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  297. </DataTemplate>
  298. </DataGridTemplateColumn.CellTemplate>
  299. </DataGridTemplateColumn>
  300. <DataGridTemplateColumn Header="Calculate Flow (sccm)" Width="200">
  301. <DataGridTemplateColumn.CellTemplate>
  302. <DataTemplate>
  303. <TextBlock Text="{Binding Path=CalculateValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  304. </DataTemplate>
  305. </DataGridTemplateColumn.CellTemplate>
  306. </DataGridTemplateColumn>
  307. <DataGridTemplateColumn Header="Elapsed time (sec.)" Width="200">
  308. <DataGridTemplateColumn.CellTemplate>
  309. <DataTemplate>
  310. <TextBlock Text="{Binding Path=ElapseTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  311. </DataTemplate>
  312. </DataGridTemplateColumn.CellTemplate>
  313. </DataGridTemplateColumn>
  314. <DataGridTemplateColumn Header="Deviation (%)" Width="200">
  315. <DataGridTemplateColumn.CellTemplate>
  316. <DataTemplate>
  317. <TextBlock Text="{Binding Path=Deviation, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  318. </DataTemplate>
  319. </DataGridTemplateColumn.CellTemplate>
  320. </DataGridTemplateColumn>
  321. <DataGridTemplateColumn Header="Result" Width="200">
  322. <DataGridTemplateColumn.CellTemplate>
  323. <DataTemplate>
  324. <Border Background="{Binding Path=ResultBackground, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
  325. <TextBlock Text="{Binding Path=Result, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  326. </Border>
  327. </DataTemplate>
  328. </DataGridTemplateColumn.CellTemplate>
  329. </DataGridTemplateColumn>
  330. </DataGrid.Columns>
  331. </DataGrid>
  332. </StackPanel>
  333. </TabItem>
  334. <TabItem Header="MFC4" x:Name="tabMFC4">
  335. <StackPanel Height="478" Width="1500" HorizontalAlignment="Left" IsEnabled="{Binding MFC4IsEnable}">
  336. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Content}" Width="1200" HorizontalAlignment="Left">
  337. <StackPanel Orientation="Horizontal" Height="30">
  338. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  339. <TextBlock Text="Gas Name" Width="85" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" Background="{Binding MFC4Background}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>
  340. </Border>
  341. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{Binding MFC4BackGround}" Padding="5,1">
  342. <TextBlock Text="{Binding MFC4DeviceData.DisplayName}" Width="200" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>
  343. </Border>
  344. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  345. <TextBlock Text="Setpoint(sccm)" Width="100" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>
  346. </Border>
  347. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  348. <ComboBox x:Name="cbMFC4Setpoint" IsEditable="True" Height="25" Width="150" ItemsSource="{Binding MFC4VerificationPoints}" SelectedIndex="0" VerticalAlignment="Center" >
  349. <ComboBox.Resources>
  350. <Style TargetType="ComboBoxItem">
  351. <Setter Property="Width" Value="150" />
  352. </Style>
  353. </ComboBox.Resources>
  354. </ComboBox>
  355. </Border>
  356. <Border BorderBrush="{DynamicResource Table_BD}" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  357. <StackPanel Orientation="Horizontal">
  358. <Button Content="Start One Point" Width="150" Height="25" FontSize="14" Margin="20,0,0,0" IsEnabled="{Binding IsVerificationButtonEnable}">
  359. <i:Interaction.Triggers>
  360. <i:EventTrigger EventName="Click">
  361. <cal:ActionMessage MethodName="StartVerification">
  362. <cal:Parameter Value="{Binding ElementName=tabMFC4, Path=Header}" />
  363. <cal:Parameter Value="{Binding ElementName=cbMFC4Setpoint, Path=SelectedValue}" />
  364. <cal:Parameter Value="1" />
  365. </cal:ActionMessage>
  366. </i:EventTrigger>
  367. </i:Interaction.Triggers>
  368. </Button>
  369. <Button Content="Start Ten Points" Width="150" Height="25" FontSize="14" Margin="30,0,0,0" IsEnabled="{Binding IsVerificationButtonEnable}">
  370. <i:Interaction.Triggers>
  371. <i:EventTrigger EventName="Click">
  372. <cal:ActionMessage MethodName="StartVerification">
  373. <cal:Parameter Value="{Binding ElementName=tabMFC4, Path=Header}" />
  374. <cal:Parameter Value="{Binding ElementName=cbMFC4Setpoint, Path=SelectedValue}" />
  375. <cal:Parameter Value="10" />
  376. </cal:ActionMessage>
  377. </i:EventTrigger>
  378. </i:Interaction.Triggers>
  379. </Button>
  380. <Button Content="Abort" Width="150" Height="25" FontSize="14" Margin="30,0,0,0" >
  381. <i:Interaction.Triggers>
  382. <i:EventTrigger EventName="Click">
  383. <cal:ActionMessage MethodName="Abort">
  384. </cal:ActionMessage>
  385. </i:EventTrigger>
  386. </i:Interaction.Triggers>
  387. </Button>
  388. </StackPanel>
  389. </Border>
  390. </StackPanel>
  391. </Border>
  392. <Label Content="Verification Data:" Foreground="Black" Height="25" VerticalAlignment="Center"/>
  393. <DataGrid Grid.Row="3" AlternationCount="2" HorizontalAlignment="Left" CanUserAddRows="False" AutoGenerateColumns="False" RowHeaderWidth="0"
  394. VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.VirtualizationMode="Recycling" HorizontalContentAlignment="Center"
  395. ItemsSource="{Binding MFC4VerificationData}" x:Name="verificationDataGridMFC4" Height="308">
  396. <DataGrid.Columns>
  397. <DataGridTemplateColumn Header="Setpoint (sccm)" Width="200">
  398. <DataGridTemplateColumn.CellTemplate>
  399. <DataTemplate>
  400. <TextBlock Text="{Binding Path=Setpoint, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  401. </DataTemplate>
  402. </DataGridTemplateColumn.CellTemplate>
  403. </DataGridTemplateColumn>
  404. <DataGridTemplateColumn Header="Calculate Flow (sccm)" Width="200">
  405. <DataGridTemplateColumn.CellTemplate>
  406. <DataTemplate>
  407. <TextBlock Text="{Binding Path=CalculateValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  408. </DataTemplate>
  409. </DataGridTemplateColumn.CellTemplate>
  410. </DataGridTemplateColumn>
  411. <DataGridTemplateColumn Header="Elapsed time (sec.)" Width="200">
  412. <DataGridTemplateColumn.CellTemplate>
  413. <DataTemplate>
  414. <TextBlock Text="{Binding Path=ElapseTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  415. </DataTemplate>
  416. </DataGridTemplateColumn.CellTemplate>
  417. </DataGridTemplateColumn>
  418. <DataGridTemplateColumn Header="Deviation (%)" Width="200">
  419. <DataGridTemplateColumn.CellTemplate>
  420. <DataTemplate>
  421. <TextBlock Text="{Binding Path=Deviation, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  422. </DataTemplate>
  423. </DataGridTemplateColumn.CellTemplate>
  424. </DataGridTemplateColumn>
  425. <DataGridTemplateColumn Header="Result" Width="200">
  426. <DataGridTemplateColumn.CellTemplate>
  427. <DataTemplate>
  428. <Border Background="{Binding Path=ResultBackground, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
  429. <TextBlock Text="{Binding Path=Result, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  430. </Border>
  431. </DataTemplate>
  432. </DataGridTemplateColumn.CellTemplate>
  433. </DataGridTemplateColumn>
  434. </DataGrid.Columns>
  435. </DataGrid>
  436. </StackPanel>
  437. </TabItem>
  438. <TabItem Header="MFC5" x:Name="tabMFC5">
  439. <StackPanel Height="478" Width="1500" HorizontalAlignment="Left" IsEnabled="{Binding MFC5IsEnable}">
  440. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Content}" Width="1200" HorizontalAlignment="Left">
  441. <StackPanel Orientation="Horizontal" Height="30">
  442. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  443. <TextBlock Text="Gas Name" Width="85" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" Background="{Binding MFC5Background}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>
  444. </Border>
  445. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{Binding MFC5BackGround}" Padding="5,1">
  446. <TextBlock Text="{Binding MFC5DeviceData.DisplayName}" Width="200" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>
  447. </Border>
  448. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  449. <TextBlock Text="Setpoint(sccm)" Width="100" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="14" FontFamily="Arial" VerticalAlignment="Center"/>
  450. </Border>
  451. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  452. <ComboBox x:Name="cbMFC5Setpoint" IsEditable="True" Height="25" Width="150" ItemsSource="{Binding MFC5VerificationPoints}" SelectedIndex="0" VerticalAlignment="Center" >
  453. <ComboBox.Resources>
  454. <Style TargetType="ComboBoxItem">
  455. <Setter Property="Width" Value="150" />
  456. </Style>
  457. </ComboBox.Resources>
  458. </ComboBox>
  459. </Border>
  460. <Border BorderBrush="{DynamicResource Table_BD}" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  461. <StackPanel Orientation="Horizontal">
  462. <Button Content="Start One Point" Width="150" Height="25" FontSize="14" Margin="20,0,0,0" IsEnabled="{Binding IsVerificationButtonEnable}">
  463. <i:Interaction.Triggers>
  464. <i:EventTrigger EventName="Click">
  465. <cal:ActionMessage MethodName="StartVerification">
  466. <cal:Parameter Value="{Binding ElementName=tabMFC5, Path=Header}" />
  467. <cal:Parameter Value="{Binding ElementName=cbMFC5Setpoint, Path=SelectedValue}" />
  468. <cal:Parameter Value="1" />
  469. </cal:ActionMessage>
  470. </i:EventTrigger>
  471. </i:Interaction.Triggers>
  472. </Button>
  473. <Button Content="Start Ten Points" Width="150" Height="25" FontSize="14" Margin="30,0,0,0" IsEnabled="{Binding IsVerificationButtonEnable}">
  474. <i:Interaction.Triggers>
  475. <i:EventTrigger EventName="Click">
  476. <cal:ActionMessage MethodName="StartVerification">
  477. <cal:Parameter Value="{Binding ElementName=tabMFC5, Path=Header}" />
  478. <cal:Parameter Value="{Binding ElementName=cbMFC5Setpoint, Path=SelectedValue}" />
  479. <cal:Parameter Value="10" />
  480. </cal:ActionMessage>
  481. </i:EventTrigger>
  482. </i:Interaction.Triggers>
  483. </Button>
  484. <Button Content="Abort" Width="150" Height="25" FontSize="14" Margin="30,0,0,0" >
  485. <i:Interaction.Triggers>
  486. <i:EventTrigger EventName="Click">
  487. <cal:ActionMessage MethodName="Abort">
  488. </cal:ActionMessage>
  489. </i:EventTrigger>
  490. </i:Interaction.Triggers>
  491. </Button>
  492. </StackPanel>
  493. </Border>
  494. </StackPanel>
  495. </Border>
  496. <Label Content="Verification Data:" Foreground="Black" Height="25" VerticalAlignment="Center"/>
  497. <DataGrid Grid.Row="3" AlternationCount="2" HorizontalAlignment="Left" CanUserAddRows="False" AutoGenerateColumns="False" RowHeaderWidth="0"
  498. VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.VirtualizationMode="Recycling" HorizontalContentAlignment="Center"
  499. ItemsSource="{Binding MFC5VerificationData}" x:Name="verificationDataGridMFC5" Height="308">
  500. <DataGrid.Columns>
  501. <DataGridTemplateColumn Header="Setpoint (sccm)" Width="200">
  502. <DataGridTemplateColumn.CellTemplate>
  503. <DataTemplate>
  504. <TextBlock Text="{Binding Path=Setpoint, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  505. </DataTemplate>
  506. </DataGridTemplateColumn.CellTemplate>
  507. </DataGridTemplateColumn>
  508. <DataGridTemplateColumn Header="Calculate Flow (sccm)" Width="200">
  509. <DataGridTemplateColumn.CellTemplate>
  510. <DataTemplate>
  511. <TextBlock Text="{Binding Path=CalculateValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  512. </DataTemplate>
  513. </DataGridTemplateColumn.CellTemplate>
  514. </DataGridTemplateColumn>
  515. <DataGridTemplateColumn Header="Elapsed time (sec.)" Width="200">
  516. <DataGridTemplateColumn.CellTemplate>
  517. <DataTemplate>
  518. <TextBlock Text="{Binding Path=ElapseTime, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  519. </DataTemplate>
  520. </DataGridTemplateColumn.CellTemplate>
  521. </DataGridTemplateColumn>
  522. <DataGridTemplateColumn Header="Deviation (%)" Width="200">
  523. <DataGridTemplateColumn.CellTemplate>
  524. <DataTemplate>
  525. <TextBlock Text="{Binding Path=Deviation, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  526. </DataTemplate>
  527. </DataGridTemplateColumn.CellTemplate>
  528. </DataGridTemplateColumn>
  529. <DataGridTemplateColumn Header="Result" Width="200">
  530. <DataGridTemplateColumn.CellTemplate>
  531. <DataTemplate>
  532. <Border Background="{Binding Path=ResultBackground, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
  533. <TextBlock Text="{Binding Path=Result, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Height="25" HorizontalAlignment="Center" TextAlignment="Center"/>
  534. </Border>
  535. </DataTemplate>
  536. </DataGridTemplateColumn.CellTemplate>
  537. </DataGridTemplateColumn>
  538. </DataGrid.Columns>
  539. </DataGrid>
  540. </StackPanel>
  541. </TabItem>
  542. <TabItem Header="All MFCs" x:Name="tabAllMFCs">
  543. <StackPanel Height="478" Width="800" HorizontalAlignment="Left">
  544. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Content}" Width="800" HorizontalAlignment="Left">
  545. <StackPanel Orientation="Horizontal" Height="177">
  546. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Title}" Grid.Row="4" Padding="5,1">
  547. <TextBlock Text="Gas Name" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  548. </Border>
  549. <UniformGrid Columns="1" Margin="0,5" >
  550. <CheckBox Content="{Binding MFC1DeviceData.DisplayName}" IsChecked="{Binding IsMfc1Checked}" FontSize="14" Visibility="{Binding MFC1Visibility}"/>
  551. <CheckBox Content="{Binding MFC2DeviceData.DisplayName}" IsChecked="{Binding IsMfc2Checked}" FontSize="14" Visibility="{Binding MFC2Visibility}"/>
  552. <CheckBox Content="{Binding MFC3DeviceData.DisplayName}" IsChecked="{Binding IsMfc3Checked}" FontSize="14" Visibility="{Binding MFC3Visibility}"/>
  553. <CheckBox Content="{Binding MFC4DeviceData.DisplayName}" IsChecked="{Binding IsMfc4Checked}" FontSize="14" Visibility="{Binding MFC4Visibility}"/>
  554. <CheckBox Content="{Binding MFC5DeviceData.DisplayName}" IsChecked="{Binding IsMfc5Checked}" FontSize="14" Visibility="{Binding MFC5Visibility}"/>
  555. </UniformGrid>
  556. <Button Content="Start Ten Points" Width="150" Height="45" FontSize="12" Margin="30,12,0, 12" IsEnabled="{Binding IsVerificationButtonEnable}">
  557. <i:Interaction.Triggers>
  558. <i:EventTrigger EventName="Click">
  559. <cal:ActionMessage MethodName="StartAllCali">
  560. </cal:ActionMessage>
  561. </i:EventTrigger>
  562. </i:Interaction.Triggers>
  563. </Button>
  564. <Border BorderBrush="{DynamicResource Table_BD}" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  565. <StackPanel Orientation="Horizontal">
  566. <!--<Button Content="Start One Point" Width="100" Height="25" FontSize="12" Margin="20,0,0,0" IsEnabled="{Binding IsCalibrationButtonEnable}">
  567. <i:Interaction.Triggers>
  568. <i:EventTrigger EventName="Click">
  569. <cal:ActionMessage MethodName="StartCali">
  570. <cal:Parameter Value="{Binding ElementName=tabMFC4, Path=Header}" />
  571. <cal:Parameter Value="{Binding ElementName=cbAllMfcSetpoint, Path=SelectedValue}" />
  572. <cal:Parameter Value="1" />
  573. </cal:ActionMessage>
  574. </i:EventTrigger>
  575. </i:Interaction.Triggers>
  576. </Button>-->
  577. <!--<Button Content="Start Ten Points" Width="100" Height="25" FontSize="12" Margin="30,0,0,0" IsEnabled="{Binding IsCalibrationButtonEnable}">
  578. <i:Interaction.Triggers>
  579. <i:EventTrigger EventName="Click">
  580. <cal:ActionMessage MethodName="StartCali">
  581. <cal:Parameter Value="{Binding ElementName=tabMFC4, Path=Header}" />
  582. <cal:Parameter Value="{Binding ElementName=cbAllMfcSetpoint, Path=SelectedValue}" />
  583. <cal:Parameter Value="10" />
  584. </cal:ActionMessage>
  585. </i:EventTrigger>
  586. </i:Interaction.Triggers>
  587. </Button>-->
  588. <!--<Button Content="Set As Current" Width="100" Height="25" FontSize="12" Margin="30,0,0,0" IsEnabled="{Binding IsMFC4AcceptButtonEnable}">
  589. <i:Interaction.Triggers>
  590. <i:EventTrigger EventName="Click">
  591. <cal:ActionMessage MethodName="AcceptAll">
  592. <cal:Parameter Value="{Binding ElementName=tabAllMFCs, Path=Header}" />
  593. </cal:ActionMessage>
  594. </i:EventTrigger>
  595. </i:Interaction.Triggers>
  596. </Button>-->
  597. </StackPanel>
  598. </Border>
  599. </StackPanel>
  600. </Border>
  601. <!--<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Width="800" HorizontalAlignment="Left">
  602. <StackPanel Orientation="Horizontal" Height="30">
  603. <Button Content="Reset" Width="120" Height="25" FontSize="12">
  604. <i:Interaction.Triggers>
  605. <i:EventTrigger EventName="Click">
  606. <cal:ActionMessage MethodName="Reset">
  607. <cal:Parameter Value="{Binding ElementName=tabMFC4, Path=Header}" />
  608. <cal:Parameter Value="{Binding ElementName=calibrationDataGridMFC4, Path=SelectedIndex}" />
  609. </cal:ActionMessage>
  610. </i:EventTrigger>
  611. </i:Interaction.Triggers>
  612. </Button>
  613. <Button Content="Reset All" Width="120" Height="25" FontSize="12" Margin="10,0,0,0">
  614. <i:Interaction.Triggers>
  615. <i:EventTrigger EventName="Click">
  616. <cal:ActionMessage MethodName="ResetAll">
  617. <cal:Parameter Value="{Binding ElementName=tabMFC4, Path=Header}" />
  618. </cal:ActionMessage>
  619. </i:EventTrigger>
  620. </i:Interaction.Triggers>
  621. </Button>
  622. <Button Content="Save All" Width="120" Height="25" FontSize="12" Margin="10,0,0,0" IsEnabled="{Binding IsMFC4AcceptButtonEnable}">
  623. <i:Interaction.Triggers>
  624. <i:EventTrigger EventName="Click">
  625. <cal:ActionMessage MethodName="AcceptAll">
  626. <cal:Parameter Value="{Binding ElementName=tabMFC4, Path=Header}" />
  627. </cal:ActionMessage>
  628. </i:EventTrigger>
  629. </i:Interaction.Triggers>
  630. </Button>
  631. </StackPanel>
  632. </Border>-->
  633. </StackPanel>
  634. </TabItem>
  635. </TabControl>
  636. <!--<Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Content}" Width="800" HorizontalAlignment="Left">
  637. <StackPanel Orientation="Horizontal" Height="30">
  638. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  639. <ComboBox x:Name="cbMFC" Height="25" Width="100" ItemsSource="{Binding MFCs}" SelectedItem="{Binding SelectedMFC}" VerticalAlignment="Center" />
  640. </Border>
  641. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  642. <TextBlock Text="{Binding SelectedGasName}" Width="80" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  643. </Border>
  644. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  645. <TextBlock Text="Setpoint(sccm)" Width="85" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  646. </Border>
  647. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  648. <ComboBox x:Name="cbSetpoint" Height="25" Width="100" ItemsSource="{Binding CalibrationPoints}" SelectedItem="{Binding Setpoint}" VerticalAlignment="Center" />
  649. </Border>
  650. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  651. <TextBlock Text="Flow Time(S)" Width="85" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  652. </Border>
  653. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  654. <TextBox x:Name="tbTime" Width="80" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  655. </Border>
  656. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  657. <Button Content="Start" Width="80" Height="25" FontSize="12">
  658. <i:Interaction.Triggers>
  659. <i:EventTrigger EventName="Click">
  660. <cal:ActionMessage MethodName="StartVerification">
  661. <cal:Parameter Value="{Binding ElementName=cbMFC, Path=SelectedValue}" />
  662. <cal:Parameter Value="{Binding ElementName=cbSetpoint, Path=SelectedValue}" />
  663. <cal:Parameter Value="{Binding ElementName=tbTime, Path=Text}" />
  664. </cal:ActionMessage>
  665. </i:EventTrigger>
  666. </i:Interaction.Triggers>
  667. </Button>
  668. </Border>
  669. </StackPanel>
  670. </Border>
  671. <Border Grid.Row="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1" Background="{DynamicResource Table_BG_Content}" Width="800" HorizontalAlignment="Left">
  672. <StackPanel Orientation="Horizontal" Height="30">
  673. <Button Content="Reset" Width="120" Height="25" FontSize="12">
  674. <i:Interaction.Triggers>
  675. <i:EventTrigger EventName="Click">
  676. <cal:ActionMessage MethodName="Reset">
  677. <cal:Parameter Value="{Binding ElementName=calibrationDataGrid, Path=SelectedIndex}" />
  678. </cal:ActionMessage>
  679. </i:EventTrigger>
  680. </i:Interaction.Triggers>
  681. </Button>
  682. <Button Content="Reset All" Width="120" Height="25" FontSize="12" Margin="10,0,0,0">
  683. <i:Interaction.Triggers>
  684. <i:EventTrigger EventName="Click">
  685. <cal:ActionMessage MethodName="ResetAll"/>
  686. </i:EventTrigger>
  687. </i:Interaction.Triggers>
  688. </Button>
  689. <Button Content="Save All" Width="120" Height="25" FontSize="12" Margin="10,0,0,0" IsEnabled="{Binding IsAcceptButtonEnable}">
  690. <i:Interaction.Triggers>
  691. <i:EventTrigger EventName="Click">
  692. <cal:ActionMessage MethodName="AcceptAll"/>
  693. </i:EventTrigger>
  694. </i:Interaction.Triggers>
  695. </Button>
  696. </StackPanel>
  697. </Border>
  698. <TextBlock Text="Calibration Data:" Grid.Row="2"/>
  699. <DataGrid Grid.Row="3" AlternationCount="2" HorizontalAlignment="Left" CanUserAddRows="False" AutoGenerateColumns="False" RowHeaderWidth="0"
  700. VirtualizingPanel.IsVirtualizing="True" VirtualizingPanel.VirtualizationMode="Recycling"
  701. ItemsSource="{Binding CalibrationData}" x:Name="calibrationDataGrid" Height="220">
  702. <DataGrid.Columns>
  703. <DataGridTemplateColumn Header="Setpoint(W)" Width="267">
  704. <DataGridTemplateColumn.CellTemplate>
  705. <DataTemplate>
  706. <ctrl:TextBoxEx Text="{Binding Path=Setpoint, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Width="200" Height="25"/>
  707. </DataTemplate>
  708. </DataGridTemplateColumn.CellTemplate>
  709. </DataGridTemplateColumn>
  710. <DataGridTemplateColumn Header="Monitor Power(W)" Width="267">
  711. <DataGridTemplateColumn.CellTemplate>
  712. <DataTemplate>
  713. <ctrl:TextBoxEx Text="{Binding Path=MonitorValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Width="200" Height="25"/>
  714. </DataTemplate>
  715. </DataGridTemplateColumn.CellTemplate>
  716. </DataGridTemplateColumn>
  717. <DataGridTemplateColumn Header="Meter Power(W)" Width="266">
  718. <DataGridTemplateColumn.CellTemplate>
  719. <DataTemplate>
  720. <ctrl:TextBoxEx Text="{Binding Path=MeterValue, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, StringFormat={}{0:F1}}" Width="200" Height="25"/>
  721. </DataTemplate>
  722. </DataGridTemplateColumn.CellTemplate>
  723. </DataGridTemplateColumn>
  724. </DataGrid.Columns>
  725. </DataGrid>-->
  726. <Border Grid.Row="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,1,1,1" Background="{DynamicResource Table_BG_Content}" Width="800" HorizontalAlignment="Left">
  727. <StackPanel Orientation="Horizontal">
  728. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  729. <TextBlock Text="Start Time" Width="70" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  730. </Border>
  731. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  732. <wfi:WindowsFormsHost Margin="5,0,0,0" FontSize="14" FontFamily="Arial" Width="170" Height="22" VerticalAlignment="Center">
  733. <wf:DateTimePicker x:Name="wfTimeFrom" Value="2011-8-1" CustomFormat="yyyy/MM/dd HH:mm:ss" Format="Custom"></wf:DateTimePicker>
  734. </wfi:WindowsFormsHost>
  735. <!--<xctk:DateTimePicker x:Name="wfTimeFrom" Format="Custom" FontSize="13"
  736. FormatString="yyyy/MM/dd HH:mm:ss"
  737. TimeFormat="Custom"
  738. AutoCloseCalendar="True"
  739. TimeFormatString="HH:mm:ss"
  740. Grid.Row="0" VerticalAlignment="Top"
  741. Value="2011-8-1" Height="22" Width="170" Margin="2,2,0,0" />-->
  742. </Border>
  743. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  744. <TextBlock Text="End Time" Width="70" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="12" FontFamily="Arial" VerticalAlignment="Center"/>
  745. </Border>
  746. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,0" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  747. <wfi:WindowsFormsHost Margin="5,0,0,0" FontSize="14" FontFamily="Arial" Width="170" Height="22" VerticalAlignment="Center">
  748. <wf:DateTimePicker x:Name="wfTimeTo" Value="2013-8-1" CustomFormat="yyyy/MM/dd HH:mm:ss" Format="Custom"></wf:DateTimePicker>
  749. </wfi:WindowsFormsHost>
  750. <!--<xctk:DateTimePicker x:Name="wfTimeTo" Format="Custom" FontSize="13"
  751. FormatString="yyyy/MM/dd HH:mm:ss"
  752. TimeFormat="Custom"
  753. AutoCloseCalendar="True"
  754. TimeFormatString="HH:mm:ss"
  755. Grid.Row="0" VerticalAlignment="Top"
  756. Value="2013-8-1" Height="22" Width="170" Margin="2,2,0,0" />-->
  757. </Border>
  758. <Border BorderBrush="{DynamicResource Table_BD}" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  759. <StackPanel Orientation="Horizontal" IsEnabled="{Binding IsPermission}">
  760. <Button Content="Query" Width="120" Height="25" FontSize="14" Margin="5,0,0,0">
  761. <i:Interaction.Triggers>
  762. <i:EventTrigger EventName="Click">
  763. <cal:ActionMessage MethodName="Query"/>
  764. </i:EventTrigger>
  765. </i:Interaction.Triggers>
  766. </Button>
  767. <!--<Button Content="Set As Current" Width="120" Height="25" FontSize="14" Margin="10,0,0,0" IsEnabled="{Binding IsSetAsCurrentButtonEnable}">
  768. <i:Interaction.Triggers>
  769. <i:EventTrigger EventName="Click">
  770. <cal:ActionMessage MethodName="SetAsCurrent">
  771. <cal:Parameter Value="{Binding ElementName=dataGrid_CalibrationHistory, Path=SelectedIndex}" />
  772. </cal:ActionMessage>
  773. </i:EventTrigger>
  774. </i:Interaction.Triggers>
  775. </Button>-->
  776. </StackPanel>
  777. </Border>
  778. </StackPanel>
  779. </Border>
  780. <Label Content="Verification History:" Grid.Row="2" Height="25"/>
  781. <ScrollViewer Grid.Row="3" Grid.ColumnSpan="2" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Auto">
  782. <DataGrid AutoGenerateColumns="False" Name="dataGrid_VerificationHistory" CanUserAddRows="False" IsEnabled="{Binding IsPermission}"
  783. ItemsSource="{Binding VerificationDataRecords}" SelectedItem="{Binding SelectedCalibrationData,Mode=TwoWay}" HorizontalScrollBarVisibility="Auto"
  784. FontFamily="Arial" FontSize="14" Height="305" MouseDoubleClick="VerificationHistoryDataGrid_MouseDoubleClick" LostFocus="VerificationHistoryDataGrid_LoseFocus">
  785. <DataGrid.Columns>
  786. <DataGridTextColumn Width="60" Binding="{Binding Module,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False" >
  787. <DataGridTextColumn.HeaderTemplate >
  788. <DataTemplate>
  789. <TextBlock Text="Module" />
  790. </DataTemplate>
  791. </DataGridTextColumn.HeaderTemplate>
  792. <DataGridTextColumn.CellStyle>
  793. <Style TargetType="DataGridCell">
  794. <Setter Property="ToolTip" Value="{Binding Module}" />
  795. </Style>
  796. </DataGridTextColumn.CellStyle>
  797. </DataGridTextColumn>
  798. <DataGridTextColumn Width="80" Binding="{Binding Name,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False" >
  799. <DataGridTextColumn.HeaderTemplate >
  800. <DataTemplate>
  801. <TextBlock Text="Name" />
  802. </DataTemplate>
  803. </DataGridTextColumn.HeaderTemplate>
  804. <DataGridTextColumn.CellStyle>
  805. <Style TargetType="DataGridCell">
  806. <Setter Property="ToolTip" Value="{Binding Name}" />
  807. </Style>
  808. </DataGridTextColumn.CellStyle>
  809. </DataGridTextColumn>
  810. <DataGridTextColumn Width="155" Binding="{Binding Time,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False" >
  811. <DataGridTextColumn.HeaderTemplate >
  812. <DataTemplate>
  813. <TextBlock Text="StartTime" />
  814. </DataTemplate>
  815. </DataGridTextColumn.HeaderTemplate>
  816. <DataGridTextColumn.CellStyle>
  817. <Style TargetType="DataGridCell">
  818. <Setter Property="ToolTip" Value="{Binding Time}" />
  819. </Style>
  820. </DataGridTextColumn.CellStyle>
  821. </DataGridTextColumn>
  822. <DataGridTextColumn Width="100" Binding="{Binding Setpoint,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  823. <DataGridTextColumn.HeaderTemplate >
  824. <DataTemplate>
  825. <TextBlock Text="Setpoint" />
  826. </DataTemplate>
  827. </DataGridTextColumn.HeaderTemplate>
  828. <DataGridTextColumn.CellStyle>
  829. <Style TargetType="DataGridCell">
  830. <Setter Property="ToolTip" Value="{Binding Setpoint}" />
  831. </Style>
  832. </DataGridTextColumn.CellStyle>
  833. </DataGridTextColumn>
  834. <DataGridTextColumn Width="100" Binding="{Binding Calculate,Mode=OneWay, StringFormat={}{0:F1}}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  835. <DataGridTextColumn.HeaderTemplate >
  836. <DataTemplate>
  837. <TextBlock Text="Calculate" />
  838. </DataTemplate>
  839. </DataGridTextColumn.HeaderTemplate>
  840. <DataGridTextColumn.CellStyle>
  841. <Style TargetType="DataGridCell">
  842. <Setter Property="ToolTip" Value="{Binding Calculate, StringFormat={}{0:F1}}" />
  843. </Style>
  844. </DataGridTextColumn.CellStyle>
  845. </DataGridTextColumn>
  846. <DataGridTextColumn Width="100" Binding="{Binding Percent10Setpoint,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  847. <DataGridTextColumn.HeaderTemplate >
  848. <DataTemplate>
  849. <TextBlock Text="10%Setpoint" />
  850. </DataTemplate>
  851. </DataGridTextColumn.HeaderTemplate>
  852. <DataGridTextColumn.CellStyle>
  853. <Style TargetType="DataGridCell">
  854. <Setter Property="ToolTip" Value="{Binding Percent10Setpoint}" />
  855. </Style>
  856. </DataGridTextColumn.CellStyle>
  857. </DataGridTextColumn>
  858. <DataGridTextColumn Width="100" Binding="{Binding Percent10Calculate,Mode=OneWay, StringFormat={}{0:F1}}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  859. <DataGridTextColumn.HeaderTemplate >
  860. <DataTemplate>
  861. <TextBlock Text="10%Calculate" />
  862. </DataTemplate>
  863. </DataGridTextColumn.HeaderTemplate>
  864. <DataGridTextColumn.CellStyle>
  865. <Style TargetType="DataGridCell">
  866. <Setter Property="ToolTip" Value="{Binding Percent10Calculate, StringFormat={}{0:F1}}" />
  867. </Style>
  868. </DataGridTextColumn.CellStyle>
  869. </DataGridTextColumn>
  870. <DataGridTextColumn Width="100" Binding="{Binding Percent20Setpoint,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  871. <DataGridTextColumn.HeaderTemplate >
  872. <DataTemplate>
  873. <TextBlock Text="20%Setpoint" />
  874. </DataTemplate>
  875. </DataGridTextColumn.HeaderTemplate>
  876. <DataGridTextColumn.CellStyle>
  877. <Style TargetType="DataGridCell">
  878. <Setter Property="ToolTip" Value="{Binding Percent20Setpoint}" />
  879. </Style>
  880. </DataGridTextColumn.CellStyle>
  881. </DataGridTextColumn>
  882. <DataGridTextColumn Width="100" Binding="{Binding Percent20Calculate,Mode=OneWay, StringFormat={}{0:F1}}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  883. <DataGridTextColumn.HeaderTemplate >
  884. <DataTemplate>
  885. <TextBlock Text="20%Calculate" />
  886. </DataTemplate>
  887. </DataGridTextColumn.HeaderTemplate>
  888. <DataGridTextColumn.CellStyle>
  889. <Style TargetType="DataGridCell">
  890. <Setter Property="ToolTip" Value="{Binding Percent20Calculate, StringFormat={}{0:F1}}" />
  891. </Style>
  892. </DataGridTextColumn.CellStyle>
  893. </DataGridTextColumn>
  894. <DataGridTextColumn Width="100" Binding="{Binding Percent30Setpoint,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  895. <DataGridTextColumn.HeaderTemplate >
  896. <DataTemplate>
  897. <TextBlock Text="30%Setpoint" />
  898. </DataTemplate>
  899. </DataGridTextColumn.HeaderTemplate>
  900. <DataGridTextColumn.CellStyle>
  901. <Style TargetType="DataGridCell">
  902. <Setter Property="ToolTip" Value="{Binding Percent30Setpoint}" />
  903. </Style>
  904. </DataGridTextColumn.CellStyle>
  905. </DataGridTextColumn>
  906. <DataGridTextColumn Width="100" Binding="{Binding Percent30Calculate,Mode=OneWay, StringFormat={}{0:F1}}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  907. <DataGridTextColumn.HeaderTemplate >
  908. <DataTemplate>
  909. <TextBlock Text="30%Calculate" />
  910. </DataTemplate>
  911. </DataGridTextColumn.HeaderTemplate>
  912. <DataGridTextColumn.CellStyle>
  913. <Style TargetType="DataGridCell">
  914. <Setter Property="ToolTip" Value="{Binding Percent30Calculate, StringFormat={}{0:F1}}" />
  915. </Style>
  916. </DataGridTextColumn.CellStyle>
  917. </DataGridTextColumn>
  918. <DataGridTextColumn Width="100" Binding="{Binding Percent40Setpoint,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  919. <DataGridTextColumn.HeaderTemplate >
  920. <DataTemplate>
  921. <TextBlock Text="40%Setpoint" />
  922. </DataTemplate>
  923. </DataGridTextColumn.HeaderTemplate>
  924. <DataGridTextColumn.CellStyle>
  925. <Style TargetType="DataGridCell">
  926. <Setter Property="ToolTip" Value="{Binding Percent40Setpoint}" />
  927. </Style>
  928. </DataGridTextColumn.CellStyle>
  929. </DataGridTextColumn>
  930. <DataGridTextColumn Width="100" Binding="{Binding Percent40Calculate,Mode=OneWay, StringFormat={}{0:F1}}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  931. <DataGridTextColumn.HeaderTemplate >
  932. <DataTemplate>
  933. <TextBlock Text="40%Calculate" />
  934. </DataTemplate>
  935. </DataGridTextColumn.HeaderTemplate>
  936. <DataGridTextColumn.CellStyle>
  937. <Style TargetType="DataGridCell">
  938. <Setter Property="ToolTip" Value="{Binding Percent40Calculate, StringFormat={}{0:F1}}" />
  939. </Style>
  940. </DataGridTextColumn.CellStyle>
  941. </DataGridTextColumn>
  942. <DataGridTextColumn Width="100" Binding="{Binding Percent50Setpoint,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  943. <DataGridTextColumn.HeaderTemplate >
  944. <DataTemplate>
  945. <TextBlock Text="50%Setpoint" />
  946. </DataTemplate>
  947. </DataGridTextColumn.HeaderTemplate>
  948. <DataGridTextColumn.CellStyle>
  949. <Style TargetType="DataGridCell">
  950. <Setter Property="ToolTip" Value="{Binding Percent50Setpoint}" />
  951. </Style>
  952. </DataGridTextColumn.CellStyle>
  953. </DataGridTextColumn>
  954. <DataGridTextColumn Width="100" Binding="{Binding Percent50Calculate,Mode=OneWay, StringFormat={}{0:F1}}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  955. <DataGridTextColumn.HeaderTemplate >
  956. <DataTemplate>
  957. <TextBlock Text="50%Calculate" />
  958. </DataTemplate>
  959. </DataGridTextColumn.HeaderTemplate>
  960. <DataGridTextColumn.CellStyle>
  961. <Style TargetType="DataGridCell">
  962. <Setter Property="ToolTip" Value="{Binding Percent50Calculate, StringFormat={}{0:F1}}" />
  963. </Style>
  964. </DataGridTextColumn.CellStyle>
  965. </DataGridTextColumn>
  966. <DataGridTextColumn Width="100" Binding="{Binding Percent60Setpoint,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  967. <DataGridTextColumn.HeaderTemplate >
  968. <DataTemplate>
  969. <TextBlock Text="60%Setpoint" />
  970. </DataTemplate>
  971. </DataGridTextColumn.HeaderTemplate>
  972. <DataGridTextColumn.CellStyle>
  973. <Style TargetType="DataGridCell">
  974. <Setter Property="ToolTip" Value="{Binding Percent60Setpoint}" />
  975. </Style>
  976. </DataGridTextColumn.CellStyle>
  977. </DataGridTextColumn>
  978. <DataGridTextColumn Width="100" Binding="{Binding Percent60Calculate,Mode=OneWay, StringFormat={}{0:F1}}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  979. <DataGridTextColumn.HeaderTemplate >
  980. <DataTemplate>
  981. <TextBlock Text="60%Calculate" />
  982. </DataTemplate>
  983. </DataGridTextColumn.HeaderTemplate>
  984. <DataGridTextColumn.CellStyle>
  985. <Style TargetType="DataGridCell">
  986. <Setter Property="ToolTip" Value="{Binding Percent60Calculate, StringFormat={}{0:F1}}" />
  987. </Style>
  988. </DataGridTextColumn.CellStyle>
  989. </DataGridTextColumn>
  990. <DataGridTextColumn Width="100" Binding="{Binding Percent70Setpoint,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  991. <DataGridTextColumn.HeaderTemplate >
  992. <DataTemplate>
  993. <TextBlock Text="70%Setpoint" />
  994. </DataTemplate>
  995. </DataGridTextColumn.HeaderTemplate>
  996. <DataGridTextColumn.CellStyle>
  997. <Style TargetType="DataGridCell">
  998. <Setter Property="ToolTip" Value="{Binding Percent70Setpoint}" />
  999. </Style>
  1000. </DataGridTextColumn.CellStyle>
  1001. </DataGridTextColumn>
  1002. <DataGridTextColumn Width="100" Binding="{Binding Percent70Calculate,Mode=OneWay, StringFormat={}{0:F1}}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  1003. <DataGridTextColumn.HeaderTemplate >
  1004. <DataTemplate>
  1005. <TextBlock Text="70%Calculate" />
  1006. </DataTemplate>
  1007. </DataGridTextColumn.HeaderTemplate>
  1008. <DataGridTextColumn.CellStyle>
  1009. <Style TargetType="DataGridCell">
  1010. <Setter Property="ToolTip" Value="{Binding Percent70Calculate, StringFormat={}{0:F1}}" />
  1011. </Style>
  1012. </DataGridTextColumn.CellStyle>
  1013. </DataGridTextColumn>
  1014. <DataGridTextColumn Width="100" Binding="{Binding Percent80Setpoint,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  1015. <DataGridTextColumn.HeaderTemplate >
  1016. <DataTemplate>
  1017. <TextBlock Text="80%Setpoint" />
  1018. </DataTemplate>
  1019. </DataGridTextColumn.HeaderTemplate>
  1020. <DataGridTextColumn.CellStyle>
  1021. <Style TargetType="DataGridCell">
  1022. <Setter Property="ToolTip" Value="{Binding Percent80Setpoint}" />
  1023. </Style>
  1024. </DataGridTextColumn.CellStyle>
  1025. </DataGridTextColumn>
  1026. <DataGridTextColumn Width="100" Binding="{Binding Percent80Calculate,Mode=OneWay, StringFormat={}{0:F1}}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  1027. <DataGridTextColumn.HeaderTemplate >
  1028. <DataTemplate>
  1029. <TextBlock Text="80%Calculate" />
  1030. </DataTemplate>
  1031. </DataGridTextColumn.HeaderTemplate>
  1032. <DataGridTextColumn.CellStyle>
  1033. <Style TargetType="DataGridCell">
  1034. <Setter Property="ToolTip" Value="{Binding Percent80Calculate, StringFormat={}{0:F1}}" />
  1035. </Style>
  1036. </DataGridTextColumn.CellStyle>
  1037. </DataGridTextColumn>
  1038. <DataGridTextColumn Width="100" Binding="{Binding Percent90Setpoint,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  1039. <DataGridTextColumn.HeaderTemplate >
  1040. <DataTemplate>
  1041. <TextBlock Text="90%Setpoint" />
  1042. </DataTemplate>
  1043. </DataGridTextColumn.HeaderTemplate>
  1044. <DataGridTextColumn.CellStyle>
  1045. <Style TargetType="DataGridCell">
  1046. <Setter Property="ToolTip" Value="{Binding Percent90Setpoint}" />
  1047. </Style>
  1048. </DataGridTextColumn.CellStyle>
  1049. </DataGridTextColumn>
  1050. <DataGridTextColumn Width="100" Binding="{Binding Percent90Calculate,Mode=OneWay, StringFormat={}{0:F1}}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  1051. <DataGridTextColumn.HeaderTemplate >
  1052. <DataTemplate>
  1053. <TextBlock Text="90%Calculate" />
  1054. </DataTemplate>
  1055. </DataGridTextColumn.HeaderTemplate>
  1056. <DataGridTextColumn.CellStyle>
  1057. <Style TargetType="DataGridCell">
  1058. <Setter Property="ToolTip" Value="{Binding Percent90Calculate, StringFormat={}{0:F1}}" />
  1059. </Style>
  1060. </DataGridTextColumn.CellStyle>
  1061. </DataGridTextColumn>
  1062. <DataGridTextColumn Width="100" Binding="{Binding Percent100Setpoint,Mode=OneWay}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  1063. <DataGridTextColumn.HeaderTemplate >
  1064. <DataTemplate>
  1065. <TextBlock Text="100%Setpoint" />
  1066. </DataTemplate>
  1067. </DataGridTextColumn.HeaderTemplate>
  1068. <DataGridTextColumn.CellStyle>
  1069. <Style TargetType="DataGridCell">
  1070. <Setter Property="ToolTip" Value="{Binding Percent100Setpoint}" />
  1071. </Style>
  1072. </DataGridTextColumn.CellStyle>
  1073. </DataGridTextColumn>
  1074. <DataGridTextColumn Width="100" Binding="{Binding Percent100Calculate,Mode=OneWay, StringFormat={}{0:F1}}" CanUserSort="True" CanUserReorder="False" IsReadOnly="True" CanUserResize="False">
  1075. <DataGridTextColumn.HeaderTemplate >
  1076. <DataTemplate>
  1077. <TextBlock Text="100%Calculate" />
  1078. </DataTemplate>
  1079. </DataGridTextColumn.HeaderTemplate>
  1080. <DataGridTextColumn.CellStyle>
  1081. <Style TargetType="DataGridCell">
  1082. <Setter Property="ToolTip" Value="{Binding Percent100Calculate, StringFormat={}{0:F1}}" />
  1083. </Style>
  1084. </DataGridTextColumn.CellStyle>
  1085. </DataGridTextColumn>
  1086. </DataGrid.Columns>
  1087. </DataGrid>
  1088. </ScrollViewer>
  1089. </Grid>
  1090. <Grid Visibility="{Binding MFCQueryVisibility}" Margin="0,10,0,0">
  1091. <Grid.RowDefinitions>
  1092. <RowDefinition></RowDefinition>
  1093. <RowDefinition Height="30"></RowDefinition>
  1094. </Grid.RowDefinitions>
  1095. <Grid.ColumnDefinitions>
  1096. <ColumnDefinition Width="Auto"></ColumnDefinition>
  1097. <ColumnDefinition Width="364"></ColumnDefinition>
  1098. </Grid.ColumnDefinitions>
  1099. <Grid Width="1545" Grid.Column="0">
  1100. <Grid.ColumnDefinitions>
  1101. <ColumnDefinition Width="86*"/>
  1102. <ColumnDefinition Width="7*"/>
  1103. <ColumnDefinition Width="216*"/>
  1104. </Grid.ColumnDefinitions>
  1105. <sciChart:SciChartSurface Name="sciChart" RenderableSeries="{Binding SelectedData}"
  1106. sciChart:ThemeManager.Theme="ExpressionLight"
  1107. Padding="0,0,0,0"
  1108. DebugWhyDoesntSciChartRender="False" BorderBrush="Gray" Focusable="False" IsTabStop="False" Margin="5,0,0,0" Visibility="Hidden" Grid.ColumnSpan="3">
  1109. <sciChart:SciChartSurface.Resources>
  1110. <!-- This is the style for the control that hosts the Axis Label -->
  1111. <Style x:Key="CursorModAxisLabelStyle" TargetType="sciChart:AxisLabelControl">
  1112. <Setter Property="Background" Value="#AAFF6600" />
  1113. <Setter Property="BorderBrush" Value="#FFFF6600" />
  1114. <Setter Property="BorderThickness" Value="1" />
  1115. <Setter Property="Foreground" Value="White" />
  1116. <Setter Property="FontSize" Value="25" />
  1117. </Style>
  1118. <Style x:Key="CursorTooltipStyle" TargetType="sciChart:CursorLabelControl">
  1119. <Setter Property="Template">
  1120. <Setter.Value>
  1121. <ControlTemplate TargetType="sciChart:CursorLabelControl">
  1122. <Border Background="#AAFF6600"
  1123. BorderBrush="#FFFF6600"
  1124. BorderThickness="2"
  1125. Opacity="0.7"
  1126. Padding="2.5">
  1127. <!--<ItemsControl ItemsSource="{Binding DataContext.SeriesData.SeriesInfo, RelativeSource={RelativeSource TemplatedParent}}">
  1128. <ItemsControl.ItemTemplate>
  1129. <DataTemplate DataType="s:SeriesInfo">
  1130. <ContentControl Content="{Binding}" ContentTemplate="{Binding Path=RenderableSeries.(s:CursorModifier.TooltipTemplate)}" />
  1131. </DataTemplate>
  1132. </ItemsControl.ItemTemplate>
  1133. </ItemsControl>-->
  1134. </Border>
  1135. </ControlTemplate>
  1136. </Setter.Value>
  1137. </Setter>
  1138. </Style>
  1139. </sciChart:SciChartSurface.Resources>
  1140. <sciChart:SciChartSurface.XAxis>
  1141. <sciChart:NumericAxis DrawMinorTicks="True"
  1142. DrawMinorGridLines="True"
  1143. sciChart:CursorModifier.AxisLabelContainerStyle="{StaticResource CursorModAxisLabelStyle}"
  1144. AxisAlignment="Bottom"
  1145. AutoRange="{Binding AutoRangeX}"
  1146. VisibleRange="{Binding XValueRange, Mode=TwoWay}"
  1147. Id="DefaultAxisId">
  1148. <sciChart:NumericAxis.GrowBy>
  1149. <sciChart:DoubleRange Min="0.1" Max="0.1"/>
  1150. </sciChart:NumericAxis.GrowBy>
  1151. </sciChart:NumericAxis>
  1152. </sciChart:SciChartSurface.XAxis>
  1153. <!-- Create a Y Axis -->
  1154. <sciChart:SciChartSurface.YAxis>
  1155. <sciChart:NumericAxis DrawMinorTicks="True"
  1156. DrawMinorGridLines="True"
  1157. AxisAlignment="Left"
  1158. AutoRange="{Binding AutoRangeY}"
  1159. VisibleRange="{Binding YValueRange, Mode=TwoWay}"
  1160. Id="DefaultAxisId">
  1161. <sciChart:NumericAxis.GrowBy>
  1162. <sciChart:DoubleRange Min="0.1" Max="0.1"/>
  1163. </sciChart:NumericAxis.GrowBy>
  1164. </sciChart:NumericAxis>
  1165. </sciChart:SciChartSurface.YAxis>
  1166. <sciChart:SciChartSurface.ChartModifier>
  1167. <sciChart:ModifierGroup ExecuteOn="MouseDoubleClick">
  1168. <sciChart:RubberBandXyZoomModifier x:Name="rubberBandZoomModifier" IsEnabled="True"
  1169. IsXAxisOnly="False"
  1170. ZoomExtentsY="False"
  1171. IsAnimated="True" ExecuteOn="MouseLeftButton" ReceiveHandledEvents="True" />
  1172. <sciChart:SeriesSelectionModifier ExecuteOn="MouseLeftButton" ReceiveHandledEvents="True">
  1173. <sciChart:SeriesSelectionModifier.SelectedSeriesStyle>
  1174. <Style TargetType="sciChart:BaseRenderableSeries">
  1175. <Setter Property="Stroke" Value="Red"/>
  1176. <Setter Property="StrokeThickness" Value="3"/>
  1177. <Setter Property="PointMarkerTemplate">
  1178. <Setter.Value>
  1179. <ControlTemplate>
  1180. <sciChart:EllipsePointMarker Width="7" Height="7" Fill="#FF00DC" Stroke="White"/>
  1181. </ControlTemplate>
  1182. </Setter.Value>
  1183. </Setter>
  1184. </Style>
  1185. </sciChart:SeriesSelectionModifier.SelectedSeriesStyle>
  1186. </sciChart:SeriesSelectionModifier>
  1187. <sciChart:ZoomExtentsModifier x:Name="zoomExtentsModifier" XyDirection="XYDirection" ReceiveHandledEvents="True" ExecuteOn="MouseDoubleClick"/>
  1188. <sciChart:CursorModifier IsEnabled="True" ShowTooltipOn="MouseOver"
  1189. ShowAxisLabels="True" SourceMode="AllSeries"
  1190. ShowTooltip="False" />
  1191. <!--自由平移-->
  1192. <sciChart:ZoomPanModifier x:Name="zoomPanModifier" ReceiveHandledEvents="True" IsEnabled="True" ClipModeX="None" XyDirection="XYDirection" ExecuteOn="MouseRightButton" ZoomExtentsY="False" />
  1193. <sciChart:LegendModifier ShowLegend="False" Orientation="Horizontal" Margin="10" HorizontalAlignment="Right"
  1194. LegendPlacement="Inside" GetLegendDataFor="AllSeries"
  1195. ShowVisibilityCheckboxes="False"/>
  1196. <sciChart:RolloverModifier x:Name="rolloverModifier"
  1197. UseInterpolation="False" FontSize="9" IsEnabled="True"
  1198. DrawVerticalLine="False" FontFamily="Arial,SimSun"
  1199. SnapsToDevicePixels="False"
  1200. ShowAxisLabels="False" />
  1201. <sciChart:MouseWheelZoomModifier x:Name="mouseWheelZoomModifier" XyDirection="XDirection"/>
  1202. </sciChart:ModifierGroup>
  1203. </sciChart:SciChartSurface.ChartModifier>
  1204. </sciChart:SciChartSurface>
  1205. </Grid>
  1206. <DataGrid Grid.Column="1" Margin="1,0,0,0"
  1207. AlternationCount="2" ColumnHeaderHeight="30"
  1208. ItemsSource="{Binding CalibrationErrorRate}" AutoGenerateColumns="False"
  1209. CanUserAddRows="False" CanUserResizeRows="False" CanUserResizeColumns="True" FontFamily="Arial" FontSize="12">
  1210. <DataGrid.Columns>
  1211. <DataGridTemplateColumn Header="Setpoint(sccm)" MinWidth="120">
  1212. <DataGridTemplateColumn.CellTemplate>
  1213. <DataTemplate>
  1214. <TextBlock Text="{Binding Setpoint}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" />
  1215. </DataTemplate>
  1216. </DataGridTemplateColumn.CellTemplate>
  1217. </DataGridTemplateColumn>
  1218. <DataGridTemplateColumn Header="Calc Flow(sccm)" MinWidth="120">
  1219. <DataGridTemplateColumn.CellTemplate>
  1220. <DataTemplate>
  1221. <TextBlock Text="{Binding CalculateValue}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" />
  1222. </DataTemplate>
  1223. </DataGridTemplateColumn.CellTemplate>
  1224. </DataGridTemplateColumn>
  1225. <DataGridTemplateColumn Header="Error Rate(%)" MinWidth="120">
  1226. <DataGridTemplateColumn.CellTemplate>
  1227. <DataTemplate>
  1228. <TextBlock Text="{Binding ErrorRate}" Margin="5,0" FontFamily="Arial" FontSize="14" Foreground="{DynamicResource FG_Black}" HorizontalAlignment="Left" VerticalAlignment="Center" />
  1229. </DataTemplate>
  1230. </DataGridTemplateColumn.CellTemplate>
  1231. </DataGridTemplateColumn>
  1232. </DataGrid.Columns>
  1233. </DataGrid>
  1234. <Button Content="Back" Grid.Row="1" Width="50" Margin="477,5,214,3" Visibility="Hidden">
  1235. <i:Interaction.Triggers>
  1236. <i:EventTrigger EventName="Click">
  1237. <cal:ActionMessage MethodName="Back"/>
  1238. </i:EventTrigger>
  1239. </i:Interaction.Triggers>
  1240. </Button>
  1241. </Grid>
  1242. </Grid>
  1243. </UserControl>