using Community;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
namespace Model
{
///
/// 显示信息
///
public class ShowInfo : NotificationObject
{
///
/// ID 识别符
///
public int ID { get; set; }
///
/// 状态信息临时变量(用于语言切换)
///
public string StatuInfoTemp = "";
private string statuInfo;
///
/// 状态信息
///
public string StatuInfo
{
get { return statuInfo; }
set
{
statuInfo = value;
this.RaisePropertyChanged("StatuInfo");
}
}
private double statuValue;
///
/// 值,这里用于记录测试结果
///
public double StatuValue
{
get { return statuValue; }
set
{
statuValue = value;
this.RaisePropertyChanged("StatuValue");
}
}
private string statusBackground;
///
/// 状态显示的背景颜色
///
public string StatusBackground
{
get { return statusBackground; }
set
{
statusBackground = value;
this.RaisePropertyChanged("StatusBackground");
}
}
private string statusForeground;
///
/// 状态显示前景色
///
public string StatusForeground
{
get { return statusForeground; }
set
{
statusForeground = value;
this.RaisePropertyChanged("StatusForeground");
}
}
private int testCount;
///
/// 已测试次数
///
public int TestCount
{
get { return testCount; }
set
{
testCount = value;
RaisePropertyChanged("TestCount");
}
}
private int testCountNG;
///
/// 测试NG次数
///
public int TestCountNG
{
get { return testCountNG; }
set { testCountNG = value; RaisePropertyChanged("TestCountNG"); }
}
public ShowInfo()
{
//默认背景颜色 白色
StatusBackground = ColorStr.White;
StatusForeground = ColorStr.White;
}
}
}