123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- using System.Windows;
- using System.Windows.Controls;
- namespace Venus_Themes.UserControls
- {
- /// <summary>
- /// GasStick.xaml 的交互逻辑
- /// </summary>
- public partial class GasStick : UserControl
- {
- public GasStick()
- {
- InitializeComponent();
- }
- public static readonly DependencyProperty MFCNameProperty = DependencyProperty.Register(
- "MFCName", typeof(string), typeof(GasStick));
- public string MFCName
- {
- get { return (string)this.GetValue(MFCNameProperty); }
- set { this.SetValue(MFCNameProperty, value); }
- }
- public static readonly DependencyProperty GasInformationProperty = DependencyProperty.Register(
- "GasInformation", typeof(string), typeof(GasStick));
- public string GasInformation
- {
- get { return (string)this.GetValue(GasInformationProperty); }
- set { this.SetValue(GasInformationProperty, value); }
- }
- public static readonly DependencyProperty MFCFlowSetpointProperty = DependencyProperty.Register(
- "MFCFlowSetpoint", typeof(float), typeof(GasStick));
- public float MFCFlowSetpoint
- {
- get { return (float)this.GetValue(MFCFlowSetpointProperty); }
- set { this.SetValue(MFCFlowSetpointProperty, value); }
- }
- public static readonly DependencyProperty MFCFlowFeedbackProperty = DependencyProperty.Register(
- "MFCFlowFeedback", typeof(float), typeof(GasStick));
- public float MFCFlowFeedback
- {
- get { return (float)this.GetValue(MFCFlowFeedbackProperty); }
- set { this.SetValue(MFCFlowFeedbackProperty, value); }
- }
- public static readonly DependencyProperty InletValveNameNameProperty = DependencyProperty.Register(
- "InletValveNameName", typeof(string), typeof(GasStick));
- public string InletValveNameName
- {
- get { return (string)this.GetValue(InletValveNameNameProperty); }
- set { this.SetValue(InletValveNameNameProperty, value); }
- }
- public static readonly DependencyProperty OutletValveNameNameProperty = DependencyProperty.Register(
- "OutletValveNameName", typeof(string), typeof(GasStick));
- public string OutletValveNameName
- {
- get { return (string)this.GetValue(OutletValveNameNameProperty); }
- set { this.SetValue(OutletValveNameNameProperty, value); }
- }
- public static readonly DependencyProperty BypassValveNameNameProperty = DependencyProperty.Register(
- "BypassValveNameName", typeof(string), typeof(GasStick));
- public string BypassValveNameName
- {
- get { return (string)this.GetValue(BypassValveNameNameProperty); }
- set { this.SetValue(BypassValveNameNameProperty, value); }
- }
- public static readonly DependencyProperty IsPressureAlarmProperty = DependencyProperty.Register(
- "IsPressureAlarm", typeof(bool), typeof(GasStick),new PropertyMetadata (false));
- public bool IsPressureAlarm
- {
- get { return (bool)this.GetValue(IsPressureAlarmProperty); }
- set { this.SetValue(IsPressureAlarmProperty, value); }
- }
- public static readonly DependencyProperty InletValveIsOpenProperty = DependencyProperty.Register(
- "InletValveIsOpen", typeof(bool), typeof(GasStick), new PropertyMetadata(false));
- public bool InletValveIsOpen
- {
- get { return (bool)this.GetValue(InletValveIsOpenProperty); }
- set { this.SetValue(InletValveIsOpenProperty, value); }
- }
- public static readonly DependencyProperty BypassValveIsOpenProperty = DependencyProperty.Register(
- "BypassValveIsOpen", typeof(bool), typeof(GasStick), new PropertyMetadata(false));
- public bool BypassValveIsOpen
- {
- get { return (bool)this.GetValue(BypassValveIsOpenProperty); }
- set { this.SetValue(BypassValveIsOpenProperty, value); }
- }
- public static readonly DependencyProperty OutletValveIsOpenProperty = DependencyProperty.Register(
- "OutletValveIsOpen", typeof(bool), typeof(GasStick), new PropertyMetadata(false));
- public bool OutletValveIsOpen
- {
- get { return (bool)this.GetValue(OutletValveIsOpenProperty); }
- set { this.SetValue(OutletValveIsOpenProperty, value); }
- }
- }
- }
|