PlatingCellStatusControl.xaml.cs 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. using Aitex.Core.Common;
  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 PunkHPX8_Themes.UserControls
  17. {
  18. /// <summary>
  19. /// PlatingCellStatusControl.xaml 的交互逻辑
  20. /// </summary>
  21. public partial class PlatingCellStatusControl : UserControl
  22. {
  23. public PlatingCellStatusControl()
  24. {
  25. InitializeComponent();
  26. }
  27. public static readonly DependencyProperty ModuleNameProperty = DependencyProperty.Register(
  28. "ModuleName", typeof(string), typeof(PlatingCellStatusControl), 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 ChemistryProperty = DependencyProperty.Register(
  44. "Chemistry", typeof(string), typeof(PlatingCellStatusControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
  45. /// <summary>
  46. /// Chemistry
  47. /// </summary>
  48. public string Chemistry
  49. {
  50. get
  51. {
  52. return (string)this.GetValue(ChemistryProperty);
  53. }
  54. set
  55. {
  56. this.SetValue(ChemistryProperty, value);
  57. }
  58. }
  59. public static readonly DependencyProperty VerticalStationProperty = DependencyProperty.Register(
  60. "VerticalStation", typeof(string), typeof(PlatingCellStatusControl), new FrameworkPropertyMetadata("", FrameworkPropertyMetadataOptions.AffectsRender));
  61. /// <summary>
  62. /// VerticalStation
  63. /// </summary>
  64. public string VerticalStation
  65. {
  66. get
  67. {
  68. return (string)this.GetValue(VerticalStationProperty);
  69. }
  70. set
  71. {
  72. this.SetValue(VerticalStationProperty, value);
  73. }
  74. }
  75. public static readonly DependencyProperty WaferSizeProperty = DependencyProperty.Register(
  76. "WaferSize", typeof(int), typeof(PlatingCellStatusControl), new FrameworkPropertyMetadata(0, FrameworkPropertyMetadataOptions.AffectsRender));
  77. /// <summary>
  78. ///WaferSize
  79. /// </summary>
  80. public double WaferSize
  81. {
  82. get
  83. {
  84. return (double)this.GetValue(WaferSizeProperty);
  85. }
  86. set
  87. {
  88. this.SetValue(WaferSizeProperty, value);
  89. }
  90. }
  91. public static readonly DependencyProperty WaferSizeListProperty = DependencyProperty.Register(
  92. "WaferSizeList", typeof(List<int>), typeof(PlatingCellStatusControl), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender));
  93. /// <summary>
  94. ///WaferSizeList
  95. /// </summary>
  96. public List<int> WaferSizeList
  97. {
  98. get
  99. {
  100. return (List<int>)this.GetValue(WaferSizeListProperty);
  101. }
  102. set
  103. {
  104. this.SetValue(WaferSizeListProperty, value);
  105. }
  106. }
  107. public static readonly DependencyProperty ClamshellSensorProperty = DependencyProperty.Register(
  108. "ClamshellSensor", typeof(double), typeof(PlatingCellStatusControl), new FrameworkPropertyMetadata(0.0, FrameworkPropertyMetadataOptions.AffectsRender));
  109. /// <summary>
  110. /// ClamshellSensor
  111. /// </summary>
  112. public double ClamshellSensor
  113. {
  114. get
  115. {
  116. return (double)this.GetValue(ClamshellSensorProperty);
  117. }
  118. set
  119. {
  120. this.SetValue(ClamshellSensorProperty, value);
  121. }
  122. }
  123. public static readonly DependencyProperty IsClamshellOpenProperty = DependencyProperty.Register(
  124. "IsClamshellOpen", typeof(bool), typeof(PlatingCellStatusControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  125. /// <summary>
  126. /// IsClamshellOpen
  127. /// </summary>
  128. public bool IsClamshellOpen
  129. {
  130. get
  131. {
  132. return (bool)this.GetValue(IsClamshellOpenProperty);
  133. }
  134. set
  135. {
  136. this.SetValue(IsClamshellOpenProperty, value);
  137. }
  138. }
  139. public static readonly DependencyProperty IsClamshellCloseProperty = DependencyProperty.Register(
  140. "IsClamshellClose", typeof(bool), typeof(PlatingCellStatusControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  141. /// <summary>
  142. /// IsClamshellClose
  143. /// </summary>
  144. public bool IsClamshellClose
  145. {
  146. get
  147. {
  148. return (bool)this.GetValue(IsClamshellCloseProperty);
  149. }
  150. set
  151. {
  152. this.SetValue(IsClamshellCloseProperty, value);
  153. }
  154. }
  155. public static readonly DependencyProperty IsAngleTiltProperty = DependencyProperty.Register(
  156. "IsAngleTilt", typeof(bool), typeof(PlatingCellStatusControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  157. /// <summary>
  158. /// IsAngleTilt
  159. /// </summary>
  160. public bool IsAngleTilt
  161. {
  162. get
  163. {
  164. return (bool)this.GetValue(IsAngleTiltProperty);
  165. }
  166. set
  167. {
  168. this.SetValue(IsAngleTiltProperty, value);
  169. }
  170. }
  171. public static readonly DependencyProperty IsAngleVerticalProperty = DependencyProperty.Register(
  172. "IsAngleVertical", typeof(bool), typeof(PlatingCellStatusControl), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  173. /// <summary>
  174. /// IsAngleVertical
  175. /// </summary>
  176. public bool IsAngleVertical
  177. {
  178. get
  179. {
  180. return (bool)this.GetValue(IsAngleVerticalProperty);
  181. }
  182. set
  183. {
  184. this.SetValue(IsAngleVerticalProperty, value);
  185. }
  186. }
  187. public static readonly DependencyProperty InputRotationSpeedProperty = DependencyProperty.Register(
  188. "InputRotationSpeed", typeof(int), typeof(PlatingCellStatusControl), new FrameworkPropertyMetadata(0, FrameworkPropertyMetadataOptions.AffectsRender));
  189. /// <summary>
  190. /// InputRotationSpeed
  191. /// </summary>
  192. public int InputRotationSpeed
  193. {
  194. get
  195. {
  196. return (int)this.GetValue(InputRotationSpeedProperty);
  197. }
  198. set
  199. {
  200. this.SetValue(InputRotationSpeedProperty, value);
  201. }
  202. }
  203. public static readonly DependencyProperty InputRotationTimeProperty = DependencyProperty.Register(
  204. "InputRotationTime", typeof(int), typeof(PlatingCellStatusControl), new FrameworkPropertyMetadata(0, FrameworkPropertyMetadataOptions.AffectsRender));
  205. /// <summary>
  206. /// InputRotationTime
  207. /// </summary>
  208. public int InputRotationTime
  209. {
  210. get
  211. {
  212. return (int)this.GetValue(InputRotationTimeProperty);
  213. }
  214. set
  215. {
  216. this.SetValue(InputRotationTimeProperty, value);
  217. }
  218. }
  219. private void ClamshellOpen_Click(object sender, RoutedEventArgs e)
  220. {
  221. }
  222. private void ClamshellClose_Click(object sender, RoutedEventArgs e)
  223. {
  224. }
  225. private void AngleTilt_Click(object sender, RoutedEventArgs e)
  226. {
  227. }
  228. private void AngleVertical_Click(object sender, RoutedEventArgs e)
  229. {
  230. }
  231. private void RotationStart_Click(object sender, RoutedEventArgs e)
  232. {
  233. }
  234. private void RotationStop_Click(object sender, RoutedEventArgs e)
  235. {
  236. }
  237. }
  238. }