using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.Windows.Input; using System.Windows; namespace Aitex.Core.UI.ControlDataContext { public class MOSourceDataItem : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; public void InvokePropertyChanged(string propertyName) { if (PropertyChanged != null) { PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); } } AnalogDeviceDataItem _mfcSourceData; public AnalogDeviceDataItem MfcSourceData { get { return _mfcSourceData; } set { _mfcSourceData = value; InvokePropertyChanged("MfcSourceData"); } } public AnalogDeviceDataItem _mfcPushData; public AnalogDeviceDataItem MfcPushData { get { return _mfcPushData; } set { _mfcPushData = value; InvokePropertyChanged("MfcPushData"); } } public AnalogDeviceDataItem _mfcDiluteData; public AnalogDeviceDataItem MfcDiluteData { get { return _mfcDiluteData; } set { _mfcDiluteData = value; InvokePropertyChanged("MfcDiluteData"); } } public AnalogDeviceDataItem _mfcInjectData; public AnalogDeviceDataItem MfcInjectData { get { return _mfcInjectData; } set { _mfcInjectData = value; InvokePropertyChanged("MfcInjectData"); } } AnalogDeviceDataItem _pcData = new AnalogDeviceDataItem(); public AnalogDeviceDataItem PcData { get { return _pcData; } set { _pcData = value; InvokePropertyChanged("PcData"); } } public GasValveDataItem _valveLineData; public GasValveDataItem ValveLineData { get { return _valveLineData; } set { _valveLineData = value; InvokePropertyChanged("ValveLineData"); } } public GasValveDataItem _valveBypassData; public GasValveDataItem ValveBypassData { get { return _valveBypassData; } set { _valveBypassData = value; InvokePropertyChanged("ValveBypassData"); } } public GasValveDataItem _vavleVacData; public GasValveDataItem VavleVacData { get { return _vavleVacData; } set { _vavleVacData = value; InvokePropertyChanged("VavleVacData"); } } GasValveDataItem _vavleRunData; public GasValveDataItem VavleRunData { get { return _vavleRunData; } set { _vavleRunData = value; InvokePropertyChanged("VavleRunData"); } } MOLineDataItem _lineData; public MOLineDataItem LineData { get { return _lineData; } set { _lineData = value; InvokePropertyChanged("LineData"); } } BathDataItem _bathData; public BathDataItem BathData { get { return _bathData; } set { _bathData = value; InvokePropertyChanged("BathData"); } } bool _isServiceMode; public bool IsServiceMode { get { return _isServiceMode; } set { _isServiceMode = value; InvokePropertyChanged("IsServiceMode"); } } public ICommand DeviceOperationCommand { get; set; } } }