终端一体化运控平台
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

44 строки
1.4 KiB

  1. using BPA.Helper;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using System.Windows.Controls;
  9. using System.Windows.Data;
  10. using System.Windows.Documents;
  11. using System.Windows.Input;
  12. using System.Windows.Media;
  13. using System.Windows.Media.Imaging;
  14. using System.Windows.Navigation;
  15. using System.Windows.Shapes;
  16. namespace BPASmartClient.DosingSystemSingle.View
  17. {
  18. /// <summary>
  19. /// ManualControlView.xaml 的交互逻辑
  20. /// </summary>
  21. public partial class ManualControlView : UserControl
  22. {
  23. public ManualControlView()
  24. {
  25. InitializeComponent();
  26. this.Unloaded += (o, e) => { ThreadManage.GetInstance().StopTask("手动气缸状态监控"); };
  27. this.SizeChanged += ManualControlView_SizeChanged;
  28. this.cy.Height = this.list1.ActualHeight + 40;
  29. this.zd.Height = this.list2.ActualHeight + 40;
  30. this.tp.Height = this.list3.ActualHeight + 40;
  31. this.onGrid.Height = this.list4.ActualHeight + 40;
  32. }
  33. private void ManualControlView_SizeChanged(object sender, SizeChangedEventArgs e)
  34. {
  35. this.cy.Height = this.list1.ActualHeight + 40;
  36. this.zd.Height = this.list2.ActualHeight + 40;
  37. this.tp.Height = this.list3.ActualHeight + 40;
  38. this.onGrid.Height = this.list4.ActualHeight + 40;
  39. }
  40. }
  41. }