ManualForm.xaml 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925
  1. <Window
  2. x:Class="SHJX.Service.View.View.ManualForm"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
  7. xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
  8. xmlns:manual="clr-namespace:SHJX.Service.Librarys.manual;assembly=SHJX.Service.Librarys"
  9. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  10. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  11. xmlns:ui="clr-namespace:CustomUI;assembly=SHJX.Service.CustomControl"
  12. Title="手动控制"
  13. Width="1048"
  14. Height="900"
  15. AllowsTransparency="True"
  16. Background="Transparent"
  17. ResizeMode="NoResize"
  18. WindowStartupLocation="CenterScreen"
  19. WindowStyle="None"
  20. mc:Ignorable="d">
  21. <Border
  22. Margin="5"
  23. Background="White"
  24. BorderBrush="#99CCCC"
  25. BorderThickness="3">
  26. <Border.Effect>
  27. <DropShadowEffect
  28. BlurRadius="10"
  29. Opacity="0.8"
  30. ShadowDepth="0"
  31. Color="#CCCCCC" />
  32. </Border.Effect>
  33. <Grid>
  34. <Grid.RowDefinitions>
  35. <RowDefinition Height="0.4*" />
  36. <RowDefinition Height="11.6*" />
  37. </Grid.RowDefinitions>
  38. <Grid
  39. Name="ManualTag"
  40. Grid.Row="0"
  41. Background="#99CCCC"
  42. MouseLeftButtonDown="ManualTag_MouseLeftButtonDown">
  43. <TextBlock
  44. Margin="10,0,0,0"
  45. VerticalAlignment="Center"
  46. FontSize="13"
  47. FontWeight="Black"
  48. Foreground="White"
  49. Text="手动控制" />
  50. <Button
  51. x:Name="btn_manual_close"
  52. Width="25"
  53. Height="25"
  54. Margin="0,0,10,0"
  55. Padding="0"
  56. HorizontalAlignment="Right"
  57. pu:ButtonHelper.ButtonStyle="Hollow"
  58. pu:ButtonHelper.ClickStyle="Sink"
  59. pu:ButtonHelper.CornerRadius="20"
  60. pu:ButtonHelper.HoverBrush="#66CCCC"
  61. Background="Transparent"
  62. BorderBrush="Transparent"
  63. Click="btn_manual_close_Click"
  64. Cursor="Hand">
  65. <Image
  66. Width="25"
  67. Height="25"
  68. Source="/SHJX.Service.Resource;component/Resources/关闭.png" />
  69. </Button>
  70. </Grid>
  71. <ScrollViewer
  72. Margin="0,20,0,0"
  73. Padding="0,0,0,0"
  74. pu:ScrollViewerHelper.ScrollBarThickness="8"
  75. pu:ScrollViewerHelper.ThumbBrush="#99CCCC"
  76. BorderBrush="#99CCCC" Grid.RowSpan="2" RenderTransformOrigin="0.504,0.454">
  77. <Grid Width="1000" HorizontalAlignment="Center">
  78. <Grid.RowDefinitions>
  79. <RowDefinition Height="139" />
  80. <RowDefinition Height="159" />
  81. <RowDefinition Height="90" />
  82. <RowDefinition Height="180" />
  83. <RowDefinition Height="180" />
  84. <RowDefinition Height="180" />
  85. </Grid.RowDefinitions>
  86. <Grid
  87. Grid.Row="0"
  88. Grid.RowSpan="3"
  89. Margin="15,0,0,52" RenderTransformOrigin="0.488,0.304">
  90. <Grid.RowDefinitions>
  91. <RowDefinition />
  92. <RowDefinition />
  93. </Grid.RowDefinitions>
  94. <Grid.ColumnDefinitions>
  95. <ColumnDefinition Width="6*" />
  96. <ColumnDefinition Width="2*" />
  97. </Grid.ColumnDefinitions>
  98. <StackPanel Grid.Column="0" Orientation="Horizontal" Grid.ColumnSpan="2" Margin="0,12,231,50">
  99. <GroupBox
  100. Grid.Row="0"
  101. Width="368"
  102. Height="82"
  103. Margin="10,5,10,5"
  104. VerticalAlignment="Center"
  105. pu:GroupBoxHelper.CornerRadius="8"
  106. pu:GroupBoxHelper.IsSplitLineVisible="True"
  107. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  108. BorderBrush="#99CCCC"
  109. Foreground="#99CCCC"
  110. Header="返回原点">
  111. <StackPanel Orientation="Horizontal">
  112. <Button
  113. Name="MotorXGB"
  114. Width="40"
  115. Height="40"
  116. Margin="5,0"
  117. pu:ButtonHelper.CornerRadius="20"
  118. pu:ButtonHelper.HoverBrush="#66CCCC"
  119. Background="#99CCCC"
  120. Command="{Binding MotorGoBackCommand}"
  121. CommandParameter="{Binding ElementName=MotorXGB, Path=Content}"
  122. Content="X轴"
  123. Cursor="Hand" />
  124. <Button
  125. Name="MotorYGB"
  126. Width="40"
  127. Height="40"
  128. Margin="5,0"
  129. pu:ButtonHelper.CornerRadius="20"
  130. pu:ButtonHelper.HoverBrush="#66CCCC"
  131. Background="#99CCCC"
  132. Command="{Binding MotorGoBackCommand}"
  133. CommandParameter="{Binding ElementName=MotorYGB, Path=Content}"
  134. Content="Y轴"
  135. Cursor="Hand" />
  136. <Button
  137. Name="MotorZGB"
  138. Width="40"
  139. Height="40"
  140. Margin="5,0"
  141. pu:ButtonHelper.CornerRadius="20"
  142. pu:ButtonHelper.HoverBrush="#66CCCC"
  143. Background="#99CCCC"
  144. Command="{Binding MotorGoBackCommand}"
  145. CommandParameter="{Binding ElementName=MotorZGB, Path=Content}"
  146. Content="Z轴"
  147. Cursor="Hand" />
  148. <Button
  149. Name="MotorTGB"
  150. Width="40"
  151. Height="40"
  152. Margin="5,0"
  153. pu:ButtonHelper.CornerRadius="20"
  154. pu:ButtonHelper.HoverBrush="#66CCCC"
  155. Background="#99CCCC"
  156. Command="{Binding MotorGoBackCommand}"
  157. CommandParameter="{Binding ElementName=MotorTGB, Path=Content}"
  158. Content="H轴"
  159. Cursor="Hand" />
  160. <Button
  161. x:Name="ClearGB"
  162. Width="40"
  163. Height="40"
  164. Margin="5,0"
  165. pu:ButtonHelper.CornerRadius="20"
  166. pu:ButtonHelper.HoverBrush="#66CCCC"
  167. Background="#99CCCC"
  168. Command="{Binding MotorGoBackCommand}"
  169. CommandParameter="{Binding ElementName=ClearGB, Path=Content}"
  170. Content="消解"
  171. Cursor="Hand" />
  172. <Button
  173. Name="CoolingGB"
  174. Width="40"
  175. Height="40"
  176. Margin="5,0"
  177. pu:ButtonHelper.CornerRadius="20"
  178. pu:ButtonHelper.HoverBrush="#66CCCC"
  179. Background="#99CCCC"
  180. Command="{Binding MotorGoBackCommand}"
  181. CommandParameter="{Binding ElementName=CoolingGB, Path=Content}"
  182. Content="冷凝"
  183. Cursor="Hand" />
  184. <Button
  185. Name="AllGB"
  186. Width="40"
  187. Height="40"
  188. Margin="5,0"
  189. pu:ButtonHelper.CornerRadius="20"
  190. pu:ButtonHelper.HoverBrush="#66CCCC"
  191. Background="#99CCCC"
  192. Command="{Binding MotorGoBackCommand}"
  193. CommandParameter="{Binding ElementName=AllGB, Path=Content}"
  194. Content="全部"
  195. Cursor="Hand" />
  196. </StackPanel>
  197. </GroupBox>
  198. <GroupBox
  199. Grid.Row="0"
  200. Width="365"
  201. Height="82"
  202. Margin="0,5,0,5"
  203. VerticalAlignment="Center"
  204. pu:GroupBoxHelper.CornerRadius="8"
  205. pu:GroupBoxHelper.IsSplitLineVisible="True"
  206. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  207. BorderBrush="#99CCCC"
  208. Foreground="#99CCCC"
  209. Header="其他操作">
  210. <StackPanel Orientation="Horizontal">
  211. <Button
  212. Name="ManiGrab"
  213. Width="40"
  214. Height="40"
  215. Margin="5,0"
  216. pu:ButtonHelper.CornerRadius="20"
  217. pu:ButtonHelper.HoverBrush="#66CCCC"
  218. Background="#99CCCC"
  219. Command="{Binding ManiOperateCommand}"
  220. CommandParameter="{Binding ElementName=ManiGrab, Path=Content}"
  221. Content="杯抓"
  222. Cursor="Hand" />
  223. <Button
  224. Name="ManiLose"
  225. Width="40"
  226. Height="40"
  227. Margin="5,0"
  228. pu:ButtonHelper.CornerRadius="20"
  229. pu:ButtonHelper.HoverBrush="#66CCCC"
  230. Background="#99CCCC"
  231. Command="{Binding ManiOperateCommand}"
  232. CommandParameter="{Binding ElementName=ManiLose, Path=Content}"
  233. Content="杯松"
  234. Cursor="Hand" />
  235. <Button
  236. Name="DripNozzleArrive"
  237. Width="40"
  238. Height="40"
  239. Margin="5,0"
  240. pu:ButtonHelper.CornerRadius="20"
  241. pu:ButtonHelper.HoverBrush="#66CCCC"
  242. Background="#99CCCC"
  243. Command="{Binding DripNozzleOperateCommand}"
  244. CommandParameter="{Binding ElementName=DripNozzleArrive, Path=Content}"
  245. Content="滴正"
  246. Cursor="Hand" />
  247. <Button
  248. Name="DripNozzleGoBack"
  249. Width="40"
  250. Height="40"
  251. Margin="5,0"
  252. pu:ButtonHelper.CornerRadius="20"
  253. pu:ButtonHelper.HoverBrush="#66CCCC"
  254. Background="#99CCCC"
  255. Command="{Binding DripNozzleOperateCommand}"
  256. CommandParameter="{Binding ElementName=DripNozzleGoBack, Path=Content}"
  257. Content="滴返"
  258. Cursor="Hand" />
  259. <!--<Button
  260. Name="DripNozzleArrive2"
  261. Width="40"
  262. Height="40"
  263. Margin="5,0"
  264. pu:ButtonHelper.CornerRadius="20"
  265. pu:ButtonHelper.HoverBrush="#66CCCC"
  266. Background="#99CCCC"
  267. Command="{Binding DripNozzleOperateCommand}"
  268. CommandParameter="{Binding ElementName=DripNozzleArrive2, Path=Content}"
  269. Content="滴2正"
  270. Cursor="Hand" />
  271. <Button
  272. Name="DripNozzleGoBack2"
  273. Width="40"
  274. Height="40"
  275. Margin="5,0"
  276. pu:ButtonHelper.CornerRadius="20"
  277. pu:ButtonHelper.HoverBrush="#66CCCC"
  278. Background="#99CCCC"
  279. Command="{Binding DripNozzleOperateCommand}"
  280. CommandParameter="{Binding ElementName=DripNozzleGoBack2, Path=Content}"
  281. Content="滴2返"
  282. Cursor="Hand" />-->
  283. <Button
  284. Name="DropMonitor"
  285. Width="40"
  286. Height="40"
  287. Margin="5,0"
  288. pu:ButtonHelper.CornerRadius="20"
  289. pu:ButtonHelper.HoverBrush="#66CCCC"
  290. Background="#99CCCC"
  291. Click="DropMonitor_Click"
  292. Content="监测"
  293. Cursor="Hand" />
  294. </StackPanel>
  295. </GroupBox>
  296. </StackPanel>
  297. <StackPanel Orientation="Horizontal" Grid.ColumnSpan="2" Margin="0,70,227,31" Grid.RowSpan="2">
  298. <GroupBox
  299. Width="248"
  300. Height="140"
  301. Margin="10,5,10,5"
  302. VerticalAlignment="Center"
  303. pu:GroupBoxHelper.CornerRadius="8"
  304. pu:GroupBoxHelper.IsSplitLineVisible="True"
  305. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  306. BorderBrush="#99CCCC"
  307. Foreground="#99CCCC"
  308. Header="电机停止">
  309. <UniformGrid Columns="5" Margin="-6,0,0,0">
  310. <Button
  311. Name="MotorXStop"
  312. Width="40"
  313. Height="40"
  314. Margin="0,0"
  315. pu:ButtonHelper.CornerRadius="20"
  316. pu:ButtonHelper.HoverBrush="#66CCCC"
  317. Background="#99CCCC"
  318. Command="{Binding MotorStopCommand}"
  319. CommandParameter="{Binding ElementName=MotorXStop, Path=Content}"
  320. Content="X轴"
  321. Cursor="Hand" />
  322. <Button
  323. Name="MotorYStop"
  324. Width="40"
  325. Height="40"
  326. Margin="0,0"
  327. pu:ButtonHelper.CornerRadius="20"
  328. pu:ButtonHelper.HoverBrush="#66CCCC"
  329. Background="#99CCCC"
  330. Command="{Binding MotorStopCommand}"
  331. CommandParameter="{Binding ElementName=MotorYStop, Path=Content}"
  332. Content="Y轴"
  333. Cursor="Hand" />
  334. <Button
  335. Name="MotorZStop"
  336. Width="40"
  337. Height="40"
  338. Margin="0,0"
  339. pu:ButtonHelper.CornerRadius="20"
  340. pu:ButtonHelper.HoverBrush="#66CCCC"
  341. Background="#99CCCC"
  342. Command="{Binding MotorStopCommand}"
  343. CommandParameter="{Binding ElementName=MotorZStop, Path=Content}"
  344. Content="Z轴"
  345. Cursor="Hand" />
  346. <Button
  347. Name="MotorTStop"
  348. Width="40"
  349. Height="40"
  350. Margin="0,0"
  351. pu:ButtonHelper.CornerRadius="20"
  352. pu:ButtonHelper.HoverBrush="#66CCCC"
  353. Background="#99CCCC"
  354. Command="{Binding MotorStopCommand}"
  355. CommandParameter="{Binding ElementName=MotorTStop, Path=Content}"
  356. Content="H轴"
  357. Cursor="Hand" />
  358. <Button
  359. Name="DissolveStop"
  360. Width="40"
  361. Height="40"
  362. Margin="0,0"
  363. pu:ButtonHelper.CornerRadius="20"
  364. pu:ButtonHelper.HoverBrush="#66CCCC"
  365. Background="#99CCCC"
  366. Command="{Binding MotorStopCommand}"
  367. CommandParameter="{Binding ElementName=DissolveStop, Path=Content}"
  368. Content="消解"
  369. Cursor="Hand" />
  370. </UniformGrid>
  371. </GroupBox>
  372. <GroupBox
  373. Width="486"
  374. Height="140"
  375. VerticalAlignment="Center"
  376. pu:GroupBoxHelper.CornerRadius="8"
  377. pu:GroupBoxHelper.IsSplitLineVisible="True"
  378. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  379. BorderBrush="#99CCCC"
  380. Foreground="#99CCCC"
  381. Header="其他">
  382. <UniformGrid Columns="3">
  383. <GroupBox
  384. Grid.Row="0"
  385. Height="90"
  386. Margin="4,5,10,5"
  387. pu:GroupBoxHelper.CornerRadius="8"
  388. pu:GroupBoxHelper.IsSplitLineVisible="True"
  389. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  390. BorderBrush="#99CCCC"
  391. Foreground="#99CCCC"
  392. Header="手动加热">
  393. <Grid Margin="-5,0,1,0">
  394. <Grid.RowDefinitions>
  395. <RowDefinition />
  396. <RowDefinition />
  397. </Grid.RowDefinitions>
  398. <TextBox
  399. x:Name="SettingTemperature"
  400. Grid.Row="0"
  401. Height="20"
  402. pu:TextBoxHelper.CornerRadius="6"
  403. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  404. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  405. BorderBrush="#99CCCC"
  406. Foreground="#99CCCC" Margin="5,3,5,2" />
  407. <UniformGrid
  408. Grid.Row="1"
  409. Columns="2"
  410. Rows="1">
  411. <Button
  412. Width="60"
  413. Height="20"
  414. pu:ButtonHelper.ClickStyle="Sink"
  415. pu:ButtonHelper.CornerRadius="6"
  416. pu:ButtonHelper.HoverBrush="#66CCCC"
  417. pu:ButtonHelper.WaitingContent="{x:Null}"
  418. Background="#99CCCC"
  419. Command="{Binding ManualStartHeatCommand}"
  420. CommandParameter="{Binding ElementName=SettingTemperature, Path=Text}"
  421. Content="开始"
  422. Cursor="Hand" Click="Button_Click" />
  423. <Button
  424. Width="60"
  425. Height="20"
  426. pu:ButtonHelper.ClickStyle="Sink"
  427. pu:ButtonHelper.CornerRadius="6"
  428. pu:ButtonHelper.HoverBrush="#66CCCC"
  429. pu:ButtonHelper.WaitingContent="{x:Null}"
  430. Background="#99CCCC"
  431. Command="{Binding ManualStopHeatCommand}"
  432. Content="结束"
  433. Cursor="Hand" />
  434. </UniformGrid>
  435. </Grid>
  436. </GroupBox>
  437. <GroupBox
  438. Grid.Row="0"
  439. Margin="1,5,2,5"
  440. pu:GroupBoxHelper.CornerRadius="8"
  441. pu:GroupBoxHelper.IsSplitLineVisible="True"
  442. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  443. BorderBrush="#99CCCC"
  444. Foreground="#99CCCC"
  445. Header="搅拌">
  446. <Grid Margin="-5,-2,0,0">
  447. <Grid.RowDefinitions>
  448. <RowDefinition />
  449. <RowDefinition />
  450. </Grid.RowDefinitions>
  451. <ui:SegmentControl
  452. Name="cb_StirName"
  453. Width="140"
  454. Height="25"
  455. HorizontalAlignment="Center"
  456. BorderBrush="#99CCCC"
  457. CornerRadius="5"
  458. Cursor="Hand"
  459. Foreground="#99CCCC"
  460. IsAllRound="False"
  461. SelectedIndex="0">
  462. <ui:SegmentItem
  463. Width="70"
  464. Height="25"
  465. Content="消解"
  466. CornerRadius="5"
  467. FontSize="11" />
  468. <ui:SegmentItem
  469. Width="70"
  470. Height="25"
  471. Content="滴定"
  472. CornerRadius="5"
  473. FontSize="11" />
  474. <!--<ui:SegmentItem
  475. Width="55"
  476. Height="25"
  477. Content="滴定(高)"
  478. CornerRadius="5"
  479. HorizontalAlignment="Center"
  480. FontSize="11" />-->
  481. </ui:SegmentControl>
  482. <UniformGrid
  483. Grid.Row="1"
  484. Columns="2"
  485. Rows="1">
  486. <Button
  487. Width="60"
  488. Height="20"
  489. pu:ButtonHelper.ClickStyle="Sink"
  490. pu:ButtonHelper.CornerRadius="6"
  491. pu:ButtonHelper.HoverBrush="#66CCCC"
  492. pu:ButtonHelper.WaitingContent="{x:Null}"
  493. Background="#99CCCC"
  494. Command="{Binding ManualStirStartCommand}"
  495. CommandParameter="{Binding ElementName=cb_StirName, Path=SelectedItem}"
  496. Content="开始"
  497. Cursor="Hand" Margin="0,0,0,-2" />
  498. <Button
  499. Width="60"
  500. Height="20"
  501. pu:ButtonHelper.ClickStyle="Sink"
  502. pu:ButtonHelper.CornerRadius="6"
  503. pu:ButtonHelper.HoverBrush="#66CCCC"
  504. pu:ButtonHelper.WaitingContent="{x:Null}"
  505. Background="#99CCCC"
  506. Command="{Binding ManualStirStopCommand}"
  507. CommandParameter="{Binding ElementName=cb_StirName, Path=SelectedItem}"
  508. Content="结束"
  509. Cursor="Hand" Margin="0,0,0,-2"/>
  510. </UniformGrid>
  511. </Grid>
  512. </GroupBox>
  513. <GroupBox
  514. Grid.Row="0"
  515. Height="90"
  516. Margin="6,5,8,5"
  517. pu:GroupBoxHelper.CornerRadius="8"
  518. pu:GroupBoxHelper.IsSplitLineVisible="True"
  519. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  520. BorderBrush="#99CCCC"
  521. Foreground="#99CCCC"
  522. Header="风扇">
  523. <Grid Margin="-3,0,2,0">
  524. <Grid.RowDefinitions>
  525. <RowDefinition />
  526. <RowDefinition />
  527. </Grid.RowDefinitions>
  528. <ui:SegmentControl
  529. Name="cb_FanName"
  530. Grid.Row="0"
  531. Width="130"
  532. Height="25"
  533. HorizontalAlignment="Center"
  534. VerticalAlignment="Center"
  535. BorderBrush="#99CCCC"
  536. CornerRadius="5"
  537. Cursor="Hand"
  538. Foreground="#99CCCC"
  539. IsAllRound="False"
  540. SelectedIndex="0">
  541. <ui:SegmentItem
  542. Width="65"
  543. Height="25"
  544. Content="样品"
  545. CornerRadius="5"
  546. FontSize="11" />
  547. <ui:SegmentItem
  548. Width="65"
  549. Height="25"
  550. Content="消解"
  551. CornerRadius="5"
  552. FontSize="11" />
  553. </ui:SegmentControl>
  554. <UniformGrid
  555. Grid.Row="1"
  556. Columns="2"
  557. Rows="1">
  558. <Button
  559. Width="60"
  560. Height="20"
  561. pu:ButtonHelper.ClickStyle="Sink"
  562. pu:ButtonHelper.CornerRadius="6"
  563. pu:ButtonHelper.HoverBrush="#66CCCC"
  564. pu:ButtonHelper.WaitingContent="{x:Null}"
  565. Background="#99CCCC"
  566. Command="{Binding ManualFanStartCommand}"
  567. CommandParameter="{Binding ElementName=cb_FanName, Path=SelectedItem}"
  568. Content="开始"
  569. Cursor="Hand" Margin="0,0,0,-2"/>
  570. <Button
  571. Width="60"
  572. Height="20"
  573. pu:ButtonHelper.ClickStyle="Sink"
  574. pu:ButtonHelper.CornerRadius="6"
  575. pu:ButtonHelper.HoverBrush="#66CCCC"
  576. pu:ButtonHelper.WaitingContent="{x:Null}"
  577. Background="#99CCCC"
  578. Command="{Binding ManualFanStopCommand}"
  579. CommandParameter="{Binding ElementName=cb_FanName, Path=SelectedItem}"
  580. Content="结束"
  581. Cursor="Hand" Margin="0,0,0,-2"/>
  582. </UniformGrid>
  583. </Grid>
  584. </GroupBox>
  585. </UniformGrid>
  586. </GroupBox>
  587. </StackPanel>
  588. <StackPanel
  589. Grid.Row="0"
  590. Grid.RowSpan="2"
  591. Grid.Column="1"
  592. HorizontalAlignment="Left"
  593. VerticalAlignment="Top" Margin="10,10,0,0" Width="250" Height="250">
  594. <ui:Dashboard
  595. x:Name="dashboard"
  596. Width="208"
  597. Height="208"
  598. Margin="10,20"
  599. LongTickCount="5"
  600. Maximum="300"
  601. ShortTickCount="2"
  602. Skin="Speed"
  603. Value="{Binding CurrentTemperature}" />
  604. </StackPanel>
  605. </Grid>
  606. <GroupBox
  607. Grid.Row="1"
  608. Width="950"
  609. HorizontalAlignment="Center"
  610. pu:GroupBoxHelper.CornerRadius="8"
  611. pu:GroupBoxHelper.IsSplitLineVisible="True"
  612. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  613. BorderBrush="#99CCCC"
  614. Foreground="#99CCCC"
  615. Header="单点移动" Margin="0,135,0,42" Grid.RowSpan="2">
  616. <UniformGrid Columns="1" Rows="1">
  617. <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
  618. <ComboBox
  619. Name="CmbArea"
  620. Width="100"
  621. Height="30"
  622. Margin="5,0"
  623. pu:ComboBoxHelper.CornerRadius="10"
  624. pu:ComboBoxHelper.HoverBackground="#1E66CCCC"
  625. pu:ComboBoxHelper.IsSearchTextBoxVisible="True"
  626. pu:ComboBoxHelper.SearchTextChanged="AreaSearchTextChanged"
  627. pu:ComboBoxHelper.SelectedBackground="#3299CCCC"
  628. BorderBrush="#99CCCC"
  629. Cursor="Hand"
  630. Foreground="#99CCCC"
  631. ItemsSource="{Binding AreaPoint}"
  632. SelectedItem="{Binding AreaCurrentPoint}">
  633. <i:Interaction.Triggers>
  634. <i:EventTrigger EventName="SelectionChanged">
  635. <i:InvokeCommandAction Command="{Binding AreaSelectionChangedCommand}" CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext}" />
  636. </i:EventTrigger>
  637. </i:Interaction.Triggers>
  638. </ComboBox>
  639. <TextBlock
  640. Margin="10,0,0,0"
  641. HorizontalAlignment="Center"
  642. VerticalAlignment="Center"
  643. Text="X轴:" />
  644. <TextBox
  645. Width="80"
  646. Height="30"
  647. Margin="0,0,5,0"
  648. pu:TextBoxHelper.CornerRadius="10"
  649. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  650. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  651. BorderBrush="#99CCCC"
  652. Foreground="#99CCCC"
  653. Text="{Binding Area.LocationX, Mode=TwoWay}" />
  654. <TextBlock
  655. Margin="10,0,0,0"
  656. HorizontalAlignment="Center"
  657. VerticalAlignment="Center"
  658. Text="Y轴:" />
  659. <TextBox
  660. Width="80"
  661. Height="30"
  662. Margin="0,0,5,0"
  663. pu:TextBoxHelper.CornerRadius="10"
  664. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  665. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  666. BorderBrush="#99CCCC"
  667. Cursor="IBeam"
  668. Foreground="#99CCCC"
  669. Text="{Binding Area.LocationY, Mode=TwoWay}" />
  670. <TextBlock
  671. Margin="10,0,0,0"
  672. HorizontalAlignment="Center"
  673. VerticalAlignment="Center"
  674. Text="Z轴:" />
  675. <TextBox
  676. Width="80"
  677. Height="30"
  678. Margin="0,0,5,0"
  679. pu:TextBoxHelper.CornerRadius="10"
  680. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  681. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  682. BorderBrush="#99CCCC"
  683. Foreground="#99CCCC"
  684. Text="{Binding Area.LocationZ, Mode=TwoWay}" />
  685. <TextBlock
  686. Margin="10,0,0,0"
  687. HorizontalAlignment="Center"
  688. VerticalAlignment="Center"
  689. Text="H轴:" />
  690. <TextBox
  691. Width="80"
  692. Height="30"
  693. Margin="0,0,5,0"
  694. pu:TextBoxHelper.CornerRadius="10"
  695. pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
  696. pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
  697. BorderBrush="#99CCCC"
  698. Foreground="#99CCCC"
  699. Text="{Binding Area.LocationT, Mode=TwoWay}" />
  700. <CheckBox
  701. Height="30"
  702. pu:CheckBoxHelper.BoxHeight="16"
  703. pu:CheckBoxHelper.BoxWidth="24"
  704. pu:CheckBoxHelper.CheckBoxStyle="Switch"
  705. pu:CheckBoxHelper.CheckedBackground="#99CCCC"
  706. pu:CheckBoxHelper.CheckedContent="可用"
  707. Content="禁用"
  708. Cursor="Hand"
  709. Foreground="#99CCCC"
  710. IsChecked="{Binding Area.Status, Mode=TwoWay}" />
  711. <Button
  712. Width="80"
  713. Height="30"
  714. Margin="20,0,0,0"
  715. pu:ButtonHelper.ClickStyle="Sink"
  716. pu:ButtonHelper.CornerRadius="10"
  717. pu:ButtonHelper.HoverBrush="#66CCCC"
  718. Background="#99CCCC"
  719. Command="{Binding SingleMoveCommand}"
  720. Content="移动" />
  721. <Button
  722. Width="80"
  723. Height="30"
  724. Margin="5,0"
  725. pu:ButtonHelper.ClickStyle="Sink"
  726. pu:ButtonHelper.CornerRadius="10"
  727. pu:ButtonHelper.HoverBrush="#66CCCC"
  728. Background="#99CCCC"
  729. Command="{Binding UpdateAreaCommand}"
  730. Content="更新" />
  731. </StackPanel>
  732. </UniformGrid>
  733. </GroupBox>
  734. <GroupBox
  735. Margin="0,65,0,0"
  736. Grid.Row="2"
  737. Width="950"
  738. Height="150"
  739. HorizontalAlignment="Center"
  740. VerticalAlignment="Top"
  741. pu:GroupBoxHelper.CornerRadius="8"
  742. pu:GroupBoxHelper.IsSplitLineVisible="True"
  743. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  744. BorderBrush="#99CCCC"
  745. Foreground="#99CCCC"
  746. Header="电机控制" Grid.RowSpan="2">
  747. <UniformGrid
  748. x:Name="MotorOperate"
  749. HorizontalAlignment="Stretch"
  750. VerticalAlignment="Stretch"
  751. Columns="6"
  752. Rows="1">
  753. <manual:ManualOperation OpName="X轴" />
  754. <manual:ManualOperation OpName="Y轴" />
  755. <manual:ManualOperation OpName="Z轴" />
  756. <manual:ManualOperation OpName="H轴" />
  757. <manual:ManualOperation OpName="消解" />
  758. <!--#region 冷凝-->
  759. <GroupBox
  760. Name="head"
  761. Grid.Row="1"
  762. Width="100"
  763. Height="100"
  764. HorizontalAlignment="Center"
  765. VerticalAlignment="Center"
  766. pu:GroupBoxHelper.CornerRadius="8"
  767. pu:GroupBoxHelper.IsSplitLineVisible="True"
  768. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  769. BorderBrush="#99CCCC"
  770. FontSize="13"
  771. Foreground="#99CCCC"
  772. Header="冷凝">
  773. <Grid>
  774. <Grid.RowDefinitions>
  775. <RowDefinition />
  776. <RowDefinition />
  777. </Grid.RowDefinitions>
  778. <Grid Grid.Row="0" />
  779. <UniformGrid
  780. Grid.Row="1"
  781. Columns="2"
  782. Rows="1">
  783. <Button
  784. Name="RiseValue"
  785. Width="40"
  786. Height="20"
  787. pu:ButtonHelper.ClickStyle="Sink"
  788. pu:ButtonHelper.CornerRadius="10"
  789. pu:ButtonHelper.HoverBrush="#66CCCC"
  790. pu:ButtonHelper.WaitingContent="{x:Null}"
  791. Background="#99CCCC"
  792. Command="{Binding CoolingPipeMoveCommand}"
  793. CommandParameter="{Binding ElementName=RiseValue, Path=Content}"
  794. Content="上升"
  795. Cursor="Hand"
  796. FontFamily="{StaticResource FontAwesome}"
  797. FontSize="12" />
  798. <Button
  799. Name="DownValue"
  800. Width="40"
  801. Height="20"
  802. pu:ButtonHelper.ClickStyle="Sink"
  803. pu:ButtonHelper.CornerRadius="10"
  804. pu:ButtonHelper.HoverBrush="#66CCCC"
  805. pu:ButtonHelper.WaitingContent="{x:Null}"
  806. Background="#99CCCC"
  807. Command="{Binding CoolingPipeMoveCommand}"
  808. CommandParameter="{Binding ElementName=DownValue, Path=Content}"
  809. Content="下降"
  810. Cursor="Hand"
  811. FontFamily="{StaticResource FontAwesome}"
  812. FontSize="12" />
  813. </UniformGrid>
  814. </Grid>
  815. </GroupBox>
  816. <!--#endregion-->
  817. <!--<manual:ManualOperation OpName="冷凝"/>-->
  818. </UniformGrid>
  819. </GroupBox>
  820. <GroupBox
  821. Margin="0,75,0,0"
  822. Grid.Row="3"
  823. Width="950"
  824. Height="150"
  825. HorizontalAlignment="Center"
  826. pu:GroupBoxHelper.CornerRadius="8"
  827. pu:GroupBoxHelper.IsSplitLineVisible="True"
  828. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  829. BorderBrush="#99CCCC"
  830. Foreground="#99CCCC"
  831. Header="液体控制(s)" Grid.RowSpan="2">
  832. <UniformGrid
  833. Width="787"
  834. HorizontalAlignment="Left"
  835. VerticalAlignment="Center"
  836. Columns="5"
  837. Rows="1">
  838. <manual:LiquidOperate OpName="水(1)" PumpInVisibility="Hidden" />
  839. <manual:LiquidOperate OpName="水(13)" PumpInVisibility="Hidden" />
  840. <manual:LiquidOperate OpName="试亚铁灵" PumpInVisibility="Hidden" />
  841. <manual:LiquidOperate OpName="硫酸汞" PumpInVisibility="Hidden" />
  842. </UniformGrid>
  843. </GroupBox>
  844. <GroupBox
  845. Margin="0,52,0,0"
  846. Grid.Row="4"
  847. Width="950"
  848. Height="150"
  849. HorizontalAlignment="Center"
  850. pu:GroupBoxHelper.CornerRadius="8"
  851. pu:GroupBoxHelper.IsSplitLineVisible="True"
  852. pu:GroupBoxHelper.ShadowColor="#66CCCC"
  853. BorderBrush="#99CCCC"
  854. Foreground="#99CCCC"
  855. Header="液体控制(ml)" Grid.RowSpan="2">
  856. <UniformGrid
  857. Width="950"
  858. HorizontalAlignment="Center"
  859. VerticalAlignment="Center"
  860. Columns="6"
  861. Rows="1">
  862. <manual:LiquidOperate
  863. InLiquidWaiting="{Binding PotassiumDichromateHighInValue}"
  864. OpName="重铬酸钾(高)"
  865. OutLiquidWaiting="{Binding PotassiumDichromateHighOutValue}" />
  866. <manual:LiquidOperate
  867. InLiquidWaiting="{Binding PotassiumDichromateLowInValue}"
  868. OpName="重铬酸钾(低)"
  869. OutLiquidWaiting="{Binding PotassiumDichromateLowOutValue}" />
  870. <manual:LiquidOperate OpName="硫酸亚铁铵(高)" PumpInVisibility="Hidden" />
  871. <manual:LiquidOperate OpName="硫酸亚铁铵(低)" PumpInVisibility="Hidden" />
  872. <manual:LiquidOperate OpName="硫酸银(1)" PumpInVisibility="Hidden" />
  873. <manual:LiquidOperate OpName="硫酸银(13)" PumpInVisibility="Hidden" />
  874. </UniformGrid>
  875. </GroupBox>
  876. </Grid>
  877. </ScrollViewer>
  878. </Grid>
  879. </Border>
  880. </Window>