using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes; using Aitex.Core.Common.DeviceData; namespace Aitex.Triton160.UI.Views { /// /// GasBoxView.xaml 的交互逻辑 /// public partial class GasPanelView : UserControl { public static readonly DependencyProperty Gas1ValveProperty = DependencyProperty.Register( "Gas1Valve", typeof(AITValveData), typeof(GasPanelView), new FrameworkPropertyMetadata(new AITValveData(), FrameworkPropertyMetadataOptions.AffectsRender)); public AITValveData Gas1Valve { get { return (AITValveData)this.GetValue(Gas1ValveProperty); } set { this.SetValue(Gas1ValveProperty, value); } } public static readonly DependencyProperty Gas2ValveProperty = DependencyProperty.Register( "Gas2Valve", typeof(AITValveData), typeof(GasPanelView), new FrameworkPropertyMetadata(new AITValveData(), FrameworkPropertyMetadataOptions.AffectsRender)); public AITValveData Gas2Valve { get { return (AITValveData)this.GetValue(Gas2ValveProperty); } set { this.SetValue(Gas2ValveProperty, value); } } public static readonly DependencyProperty Gas3ValveProperty = DependencyProperty.Register( "Gas3Valve", typeof(AITValveData), typeof(GasPanelView), new FrameworkPropertyMetadata(new AITValveData(), FrameworkPropertyMetadataOptions.AffectsRender)); public AITValveData Gas3Valve { get { return (AITValveData)this.GetValue(Gas3ValveProperty); } set { this.SetValue(Gas3ValveProperty, value); } } public static readonly DependencyProperty Gas4ValveProperty = DependencyProperty.Register( "Gas4Valve", typeof(AITValveData), typeof(GasPanelView), new FrameworkPropertyMetadata(new AITValveData(), FrameworkPropertyMetadataOptions.AffectsRender)); public AITValveData Gas4Valve { get { return (AITValveData)this.GetValue(Gas4ValveProperty); } set { this.SetValue(Gas4ValveProperty, value); } } public static readonly DependencyProperty Gas5ValveProperty = DependencyProperty.Register( "Gas5Valve", typeof(AITValveData), typeof(GasPanelView), new FrameworkPropertyMetadata(new AITValveData(), FrameworkPropertyMetadataOptions.AffectsRender)); public AITValveData Gas5Valve { get { return (AITValveData)this.GetValue(Gas5ValveProperty); } set { this.SetValue(Gas5ValveProperty, value); } } public static readonly DependencyProperty CommandProperty = DependencyProperty.Register( "Command", typeof(ICommand), typeof(GasPanelView), new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender)); public ICommand Command { get { return (ICommand)this.GetValue(CommandProperty); } set { this.SetValue(CommandProperty, value); } } public static readonly DependencyProperty Gas1MFCProperty = DependencyProperty.Register( "Gas1MFC", typeof(AITMfcData), typeof(GasPanelView), new FrameworkPropertyMetadata(new AITMfcData(), FrameworkPropertyMetadataOptions.AffectsRender)); public AITMfcData Gas1MFC { get { return (AITMfcData)this.GetValue(Gas1MFCProperty); } set { this.SetValue(Gas1MFCProperty, value); } } public static readonly DependencyProperty Gas2MFCProperty = DependencyProperty.Register( "Gas2MFC", typeof(AITMfcData), typeof(GasPanelView), new FrameworkPropertyMetadata(new AITMfcData(), FrameworkPropertyMetadataOptions.AffectsRender)); public AITMfcData Gas2MFC { get { return (AITMfcData)this.GetValue(Gas2MFCProperty); } set { this.SetValue(Gas2MFCProperty, value); } } public static readonly DependencyProperty Gas3MFCProperty = DependencyProperty.Register( "Gas3MFC", typeof(AITMfcData), typeof(GasPanelView), new FrameworkPropertyMetadata(new AITMfcData(), FrameworkPropertyMetadataOptions.AffectsRender)); public AITMfcData Gas3MFC { get { return (AITMfcData)this.GetValue(Gas3MFCProperty); } set { this.SetValue(Gas3MFCProperty, value); } } public static readonly DependencyProperty Gas4MFCProperty = DependencyProperty.Register( "Gas4MFC", typeof(AITMfcData), typeof(GasPanelView), new FrameworkPropertyMetadata(new AITMfcData(), FrameworkPropertyMetadataOptions.AffectsRender)); public AITMfcData Gas4MFC { get { return (AITMfcData)this.GetValue(Gas4MFCProperty); } set { this.SetValue(Gas4MFCProperty, value); } } public static readonly DependencyProperty Gas5MFCProperty = DependencyProperty.Register( "Gas5MFC", typeof(AITMfcData), typeof(GasPanelView), new FrameworkPropertyMetadata(new AITMfcData(), FrameworkPropertyMetadataOptions.AffectsRender)); public AITMfcData Gas5MFC { get { return (AITMfcData)this.GetValue(Gas5MFCProperty); } set { this.SetValue(Gas5MFCProperty, value); } } public static readonly DependencyProperty Gas1VisibleProperty = DependencyProperty.Register( "Gas1Visible", typeof(Visibility), typeof(GasPanelView), new FrameworkPropertyMetadata(Visibility.Visible, FrameworkPropertyMetadataOptions.AffectsRender)); public Visibility Gas1Visible { get { return (Visibility)this.GetValue(Gas1VisibleProperty); } set { this.SetValue(Gas1VisibleProperty, value); } } public static readonly DependencyProperty Gas2VisibleProperty = DependencyProperty.Register( "Gas2Visible", typeof(Visibility), typeof(GasPanelView), new FrameworkPropertyMetadata(Visibility.Visible, FrameworkPropertyMetadataOptions.AffectsRender)); public Visibility Gas2Visible { get { return (Visibility)this.GetValue(Gas2VisibleProperty); } set { this.SetValue(Gas2VisibleProperty, value); } } public static readonly DependencyProperty Gas3VisibleProperty = DependencyProperty.Register( "Gas3Visible", typeof(Visibility), typeof(GasPanelView), new FrameworkPropertyMetadata(Visibility.Visible, FrameworkPropertyMetadataOptions.AffectsRender)); public Visibility Gas3Visible { get { return (Visibility)this.GetValue(Gas3VisibleProperty); } set { this.SetValue(Gas3VisibleProperty, value); } } public static readonly DependencyProperty Gas4VisibleProperty = DependencyProperty.Register( "Gas4Visible", typeof(Visibility), typeof(GasPanelView), new FrameworkPropertyMetadata(Visibility.Visible, FrameworkPropertyMetadataOptions.AffectsRender)); public Visibility Gas4Visible { get { return (Visibility)this.GetValue(Gas4VisibleProperty); } set { this.SetValue(Gas4VisibleProperty, value); } } public static readonly DependencyProperty Gas5VisibleProperty = DependencyProperty.Register( "Gas5Visible", typeof(Visibility), typeof(GasPanelView), new FrameworkPropertyMetadata(Visibility.Visible, FrameworkPropertyMetadataOptions.AffectsRender)); public Visibility Gas5Visible { get { return (Visibility)this.GetValue(Gas5VisibleProperty); } set { this.SetValue(Gas5VisibleProperty, value); } } public GasPanelView() { InitializeComponent(); } } }