using System.Windows; using System.Windows.Controls; namespace Venus_Themes.UserControls { /// /// GasStick.xaml 的交互逻辑 /// 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); } } } }