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 = "-";
///
/// plc变量名
///
public string PlcName
{
get { return this.plcName; }
set
{
if (value != this.plcName)
{
plcName = value;
NotifyPropertyChanged();
}
}
}
private string name = "-";
///
/// 含义(标题)
///
public string Name
{
get { return this.name; }
set
{
if (value != this.name)
{
name = value;
NotifyPropertyChanged();
}
}
}
private string pointValue = "-";
///
/// 测点值(正常、故障)
///
public string PointValue
{
get { return this.pointValue; }
set
{
if (value != this.pointValue)
{
pointValue = value;
NotifyPropertyChanged();
}
}
}
}
}