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