终端一体化运控平台
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

32 rader
1.1 KiB

  1. using BPA.Helper;
  2. using System.Windows;
  3. using System.Windows.Controls;
  4. namespace BPASmartClient.DosingSystem.View
  5. {
  6. /// <summary>
  7. /// ManualControlView.xaml 的交互逻辑
  8. /// </summary>
  9. public partial class ManualControlView : UserControl
  10. {
  11. public ManualControlView()
  12. {
  13. InitializeComponent();
  14. this.Unloaded += (o, e) => { TaskManage.GetInstance.StopTask("手动气缸状态监控"); };
  15. this.SizeChanged += ManualControlView_SizeChanged;
  16. this.cy.Height = this.list1.ActualHeight + 40;
  17. this.zd.Height = this.list2.ActualHeight + 40;
  18. this.tp.Height = this.list3.ActualHeight + 40;
  19. this.onGrid.Height = this.list4.ActualHeight + 40;
  20. }
  21. private void ManualControlView_SizeChanged(object sender, SizeChangedEventArgs e)
  22. {
  23. this.cy.Height = this.list1.ActualHeight + 40;
  24. this.zd.Height = this.list2.ActualHeight + 40;
  25. this.tp.Height = this.list3.ActualHeight + 40;
  26. this.onGrid.Height = this.list4.ActualHeight + 40;
  27. }
  28. }
  29. }