123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Linq;
- using System.Runtime.CompilerServices;
- using System.Text;
- using System.Threading.Tasks;
- namespace IntelligentControlForsx.Service.WindturbineInfo.Domain
- {
- public class FaultDataInfo : INotifyPropertyChanged
- {
- public event PropertyChangedEventHandler PropertyChanged;
- private void NotifyPropertyChanged([CallerMemberName] String propertyName = "")
- {
- PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
- }
- public FaultDataInfo(string warningNum, string name, string plcName, string pointValue)
- {
- this.warningNum = warningNum;
- this.name = name;
- this.plcName = plcName;
- this.pointValue = pointValue;
- }
- private string warningNum;
- public string WarningNum
- {
- get { return warningNum; }
- set
- {
- if (value != this.warningNum)
- {
- warningNum = value;
- NotifyPropertyChanged();
- }
- }
- }
- private string plcName = "-";
- /// <summary>
- /// plc变量名
- /// </summary>
- public string PlcName
- {
- get { return this.plcName; }
- set
- {
- if (value != this.plcName)
- {
- plcName = value;
- NotifyPropertyChanged();
- }
- }
- }
- private string name = "-";
- /// <summary>
- /// 含义(标题)
- /// </summary>
- public string Name
- {
- get { return this.name; }
- set
- {
- if (value != this.name)
- {
- name = value;
- NotifyPropertyChanged();
- }
- }
- }
- private string pointValue = "-";
- /// <summary>
- /// 测点值(正常、故障)
- /// </summary>
- public string PointValue
- {
- get { return this.pointValue; }
- set
- {
- if (value != this.pointValue)
- {
- pointValue = value;
- NotifyPropertyChanged();
- }
- }
- }
- }
- }
|