StandardHotReservoirsView.xaml.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using CyberX8_Core;
  2. using CyberX8_Themes.UserControls;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows;
  9. using System.Windows.Controls;
  10. using System.Windows.Data;
  11. using System.Windows.Documents;
  12. using System.Windows.Input;
  13. using System.Windows.Media;
  14. using System.Windows.Media.Imaging;
  15. using System.Windows.Navigation;
  16. using System.Windows.Shapes;
  17. namespace CyberX8_MainPages.Views
  18. {
  19. /// <summary>
  20. /// StandardHotReservoirsView.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class StandardHotReservoirsView : UserControl
  23. {
  24. public StandardHotReservoirsView()
  25. {
  26. InitializeComponent();
  27. }
  28. private void FlowPipe_Loaded(object sender, RoutedEventArgs e)
  29. {
  30. }
  31. /// <summary>
  32. /// 跳转对应Metal页面
  33. /// </summary>
  34. /// <param name="sender"></param>
  35. /// <param name="e"></param>
  36. private void ClickJumpMetalCommand(object sender, RoutedEventArgs e)
  37. {
  38. if (sender is Clamp clamp)
  39. {
  40. string labelValue = clamp.LabelValue;
  41. GlobalEvents.OnSwitchFixedTabItem("HardWare", "Modules", $"Metal{labelValue}");
  42. }
  43. }
  44. /// <summary>
  45. /// 跳转对应TemaperatureControl页面
  46. /// </summary>
  47. /// <param name="sender"></param>
  48. /// <param name="e"></param>
  49. private void ClickJumpTCCommand(object sender, RoutedEventArgs e)
  50. {
  51. if (sender is TempControl tc)
  52. {
  53. string module = tc.ModuleName.Substring(0, 3);
  54. GlobalEvents.OnSwitchFixedTabItem("HardWare", "TemperatureController", $"module");
  55. }
  56. }
  57. private void Button_Click(object sender, RoutedEventArgs e)
  58. {
  59. }
  60. }
  61. }