GasStick.xaml.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. using System.Windows;
  2. using System.Windows.Controls;
  3. namespace Venus_Themes.UserControls
  4. {
  5. /// <summary>
  6. /// GasStick.xaml 的交互逻辑
  7. /// </summary>
  8. public partial class GasStick : UserControl
  9. {
  10. public GasStick()
  11. {
  12. InitializeComponent();
  13. }
  14. public static readonly DependencyProperty MFCNameProperty = DependencyProperty.Register(
  15. "MFCName", typeof(string), typeof(GasStick));
  16. public string MFCName
  17. {
  18. get { return (string)this.GetValue(MFCNameProperty); }
  19. set { this.SetValue(MFCNameProperty, value); }
  20. }
  21. public static readonly DependencyProperty GasInformationProperty = DependencyProperty.Register(
  22. "GasInformation", typeof(string), typeof(GasStick));
  23. public string GasInformation
  24. {
  25. get { return (string)this.GetValue(GasInformationProperty); }
  26. set { this.SetValue(GasInformationProperty, value); }
  27. }
  28. public static readonly DependencyProperty MFCFlowSetpointProperty = DependencyProperty.Register(
  29. "MFCFlowSetpoint", typeof(float), typeof(GasStick));
  30. public float MFCFlowSetpoint
  31. {
  32. get { return (float)this.GetValue(MFCFlowSetpointProperty); }
  33. set { this.SetValue(MFCFlowSetpointProperty, value); }
  34. }
  35. public static readonly DependencyProperty MFCFlowFeedbackProperty = DependencyProperty.Register(
  36. "MFCFlowFeedback", typeof(float), typeof(GasStick));
  37. public float MFCFlowFeedback
  38. {
  39. get { return (float)this.GetValue(MFCFlowFeedbackProperty); }
  40. set { this.SetValue(MFCFlowFeedbackProperty, value); }
  41. }
  42. public static readonly DependencyProperty InletValveNameNameProperty = DependencyProperty.Register(
  43. "InletValveNameName", typeof(string), typeof(GasStick));
  44. public string InletValveNameName
  45. {
  46. get { return (string)this.GetValue(InletValveNameNameProperty); }
  47. set { this.SetValue(InletValveNameNameProperty, value); }
  48. }
  49. public static readonly DependencyProperty OutletValveNameNameProperty = DependencyProperty.Register(
  50. "OutletValveNameName", typeof(string), typeof(GasStick));
  51. public string OutletValveNameName
  52. {
  53. get { return (string)this.GetValue(OutletValveNameNameProperty); }
  54. set { this.SetValue(OutletValveNameNameProperty, value); }
  55. }
  56. public static readonly DependencyProperty BypassValveNameNameProperty = DependencyProperty.Register(
  57. "BypassValveNameName", typeof(string), typeof(GasStick));
  58. public string BypassValveNameName
  59. {
  60. get { return (string)this.GetValue(BypassValveNameNameProperty); }
  61. set { this.SetValue(BypassValveNameNameProperty, value); }
  62. }
  63. public static readonly DependencyProperty IsPressureAlarmProperty = DependencyProperty.Register(
  64. "IsPressureAlarm", typeof(bool), typeof(GasStick),new PropertyMetadata (false));
  65. public bool IsPressureAlarm
  66. {
  67. get { return (bool)this.GetValue(IsPressureAlarmProperty); }
  68. set { this.SetValue(IsPressureAlarmProperty, value); }
  69. }
  70. public static readonly DependencyProperty InletValveIsOpenProperty = DependencyProperty.Register(
  71. "InletValveIsOpen", typeof(bool), typeof(GasStick), new PropertyMetadata(false));
  72. public bool InletValveIsOpen
  73. {
  74. get { return (bool)this.GetValue(InletValveIsOpenProperty); }
  75. set { this.SetValue(InletValveIsOpenProperty, value); }
  76. }
  77. public static readonly DependencyProperty BypassValveIsOpenProperty = DependencyProperty.Register(
  78. "BypassValveIsOpen", typeof(bool), typeof(GasStick), new PropertyMetadata(false));
  79. public bool BypassValveIsOpen
  80. {
  81. get { return (bool)this.GetValue(BypassValveIsOpenProperty); }
  82. set { this.SetValue(BypassValveIsOpenProperty, value); }
  83. }
  84. public static readonly DependencyProperty OutletValveIsOpenProperty = DependencyProperty.Register(
  85. "OutletValveIsOpen", typeof(bool), typeof(GasStick), new PropertyMetadata(false));
  86. public bool OutletValveIsOpen
  87. {
  88. get { return (bool)this.GetValue(OutletValveIsOpenProperty); }
  89. set { this.SetValue(OutletValveIsOpenProperty, value); }
  90. }
  91. }
  92. }