CatholyteGroove.xaml.cs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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 CyberX8_Themes.UserControls
  16. {
  17. /// <summary>
  18. /// CatholyteGroove.xaml 的交互逻辑
  19. /// </summary>
  20. public partial class CatholyteGroove : UserControl
  21. {
  22. public CatholyteGroove()
  23. {
  24. InitializeComponent();
  25. }
  26. public static readonly DependencyProperty IsShowHighSafetyProperty = DependencyProperty.Register(
  27. "IsShowHighSafety", typeof(bool), typeof(CatholyteGroove));
  28. public bool IsShowHighSafety
  29. {
  30. get
  31. {
  32. return (bool)this.GetValue(IsShowHighSafetyProperty);
  33. }
  34. set
  35. {
  36. this.SetValue(IsShowHighSafetyProperty, value);
  37. }
  38. }
  39. public static readonly DependencyProperty CATemperatureProperty = DependencyProperty.Register(
  40. "CATemperature", typeof(double), typeof(CatholyteGroove));
  41. public double CATemperature
  42. {
  43. get
  44. {
  45. return (double)this.GetValue(CATemperatureProperty);
  46. }
  47. set
  48. {
  49. this.SetValue(CATemperatureProperty, value);
  50. }
  51. }
  52. public static readonly DependencyProperty CALevelRawProperty = DependencyProperty.Register(
  53. "CALevelRaw", typeof(double), typeof(CatholyteGroove));
  54. public double CALevelRaw
  55. {
  56. get
  57. {
  58. return (double)this.GetValue(CALevelRawProperty);
  59. }
  60. set
  61. {
  62. this.SetValue(CALevelRawProperty, value);
  63. }
  64. }
  65. public static readonly DependencyProperty CALevelProperty = DependencyProperty.Register(
  66. "CALevel", typeof(double), typeof(CatholyteGroove));
  67. public double CALevel
  68. {
  69. get
  70. {
  71. return (double)this.GetValue(CALevelProperty);
  72. }
  73. set
  74. {
  75. this.SetValue(CALevelProperty, value);
  76. }
  77. }
  78. public static readonly DependencyProperty IsErrorProerty = DependencyProperty.Register(
  79. "IsError", typeof(bool), typeof(CatholyteGroove), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  80. /// <summary>
  81. /// 工艺腔体是否error
  82. /// </summary>
  83. public bool IsError
  84. {
  85. get
  86. {
  87. return (bool)this.GetValue(IsErrorProerty);
  88. }
  89. set
  90. {
  91. this.SetValue(IsErrorProerty, value);
  92. }
  93. }
  94. public static readonly DependencyProperty IsHighLevelProperty = DependencyProperty.Register(
  95. "IsHighLevel", typeof(bool), typeof(CatholyteGroove), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  96. /// <summary>
  97. /// IsHighLevel
  98. /// </summary>
  99. public bool IsHighLevel
  100. {
  101. get
  102. {
  103. return (bool)this.GetValue(IsHighLevelProperty);
  104. }
  105. set
  106. {
  107. this.SetValue(IsHighLevelProperty, value);
  108. }
  109. }
  110. public static readonly DependencyProperty IsLowLevelProperty = DependencyProperty.Register(
  111. "IsLowLevel", typeof(bool), typeof(CatholyteGroove), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  112. /// <summary>
  113. /// IsLowLevel
  114. /// </summary>
  115. public bool IsLowLevel
  116. {
  117. get
  118. {
  119. return (bool)this.GetValue(IsLowLevelProperty);
  120. }
  121. set
  122. {
  123. this.SetValue(IsLowLevelProperty, value);
  124. }
  125. }
  126. public static readonly DependencyProperty IsSafetyHighLevelProperty = DependencyProperty.Register(
  127. "IsSafetyHighLevel", typeof(bool), typeof(CatholyteGroove), new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.AffectsRender));
  128. /// <summary>
  129. /// IsHighLevel
  130. /// </summary>
  131. public bool IsSafetyHighLevel
  132. {
  133. get
  134. {
  135. return (bool)this.GetValue(IsSafetyHighLevelProperty);
  136. }
  137. set
  138. {
  139. this.SetValue(IsSafetyHighLevelProperty, value);
  140. }
  141. }
  142. }
  143. }