123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281 |
- 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
- {
- /// <summary>
- /// GasBoxView.xaml 的交互逻辑
- /// </summary>
- 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();
- }
- }
- }
|