PlatingCellUIControl.xaml.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Navigation;
  14. using System.Windows.Shapes;
  15. namespace PunkHPX8_Themes.UserControls
  16. {
  17. /// <summary>
  18. /// PlatingCellUIControl.xaml 的交互逻辑
  19. /// </summary>
  20. public partial class PlatingCellUIControl : UserControl
  21. {
  22. public PlatingCellUIControl()
  23. {
  24. InitializeComponent();
  25. }
  26. public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register(
  27. "ModuleName", typeof(string), typeof(PlatingCellUIControl),
  28. new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
  29. /// <summary>
  30. /// 模块名称
  31. /// </summary>
  32. public string ModuleName
  33. {
  34. get
  35. {
  36. return (string)this.GetValue(ModuleNameProperty);
  37. }
  38. set
  39. {
  40. this.SetValue(ModuleNameProperty, value);
  41. }
  42. }
  43. public static readonly DependencyProperty CCRValveProerty = DependencyProperty.Register(
  44. "CCRValve", typeof(bool), typeof(PlatingCellUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  45. /// <summary>
  46. /// CCRValve
  47. /// </summary>
  48. public bool CCRValve
  49. {
  50. get
  51. {
  52. return (bool)this.GetValue(CCRValveProerty);
  53. }
  54. set
  55. {
  56. this.SetValue(CCRValveProerty, value);
  57. }
  58. }
  59. public static readonly DependencyProperty RinseValveProerty = DependencyProperty.Register(
  60. "RinseValve", typeof(bool), typeof(PlatingCellUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  61. /// <summary>
  62. /// RinseValve
  63. /// </summary>
  64. public bool RinseValve
  65. {
  66. get
  67. {
  68. return (bool)this.GetValue(RinseValveProerty);
  69. }
  70. set
  71. {
  72. this.SetValue(RinseValveProerty, value);
  73. }
  74. }
  75. public static readonly DependencyProperty CAIsolationValveProerty = DependencyProperty.Register(
  76. "CAIsolationValve", typeof(bool), typeof(PlatingCellUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  77. /// <summary>
  78. /// CAIsolationValve
  79. /// </summary>
  80. public bool CAIsolationValve
  81. {
  82. get
  83. {
  84. return (bool)this.GetValue(CAIsolationValveProerty);
  85. }
  86. set
  87. {
  88. this.SetValue(CAIsolationValveProerty, value);
  89. }
  90. }
  91. public static readonly DependencyProperty ANIsolationValveProerty = DependencyProperty.Register(
  92. "ANIsolationValve", typeof(bool), typeof(PlatingCellUIControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  93. /// <summary>
  94. /// ANIsolationValve
  95. /// </summary>
  96. public bool ANIsolationValve
  97. {
  98. get
  99. {
  100. return (bool)this.GetValue(ANIsolationValveProerty);
  101. }
  102. set
  103. {
  104. this.SetValue(ANIsolationValveProerty, value);
  105. }
  106. }
  107. private void OpenCCRValve_Click(object sender, RoutedEventArgs e)
  108. {
  109. }
  110. private void CloseCCRValve_Click(object sender, RoutedEventArgs e)
  111. {
  112. }
  113. private void OpenRinseValve_Click(object sender, RoutedEventArgs e)
  114. {
  115. }
  116. private void CloseRinseValve_Click(object sender, RoutedEventArgs e)
  117. {
  118. }
  119. private void OpenCAIsolationValve_Click(object sender, RoutedEventArgs e)
  120. {
  121. }
  122. private void CloseCAIsolationValve_Click(object sender, RoutedEventArgs e)
  123. {
  124. }
  125. private void OpenANIsolationValve_Click(object sender, RoutedEventArgs e)
  126. {
  127. }
  128. private void CloseANIsolationValve_Click(object sender, RoutedEventArgs e)
  129. {
  130. }
  131. }
  132. }