132 lines
3.0 KiB
C#
132 lines
3.0 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 string statuValue;
|
|
/// <summary>
|
|
/// 状态值
|
|
/// </summary>
|
|
public string StatuValue
|
|
{
|
|
get { return statuValue; }
|
|
set
|
|
{
|
|
statuValue = value;
|
|
this.RaisePropertyChanged("StatuValue");
|
|
}
|
|
}
|
|
|
|
|
|
private double pointX;
|
|
/// <summary>
|
|
/// 坐标值X
|
|
/// </summary>
|
|
public double PointX
|
|
{
|
|
get { return pointX; }
|
|
set
|
|
{
|
|
pointX = value;
|
|
this.RaisePropertyChanged("PointX");
|
|
}
|
|
}
|
|
|
|
private double pointY;
|
|
/// <summary>
|
|
/// 坐标值Y
|
|
/// </summary>
|
|
public double PointY
|
|
{
|
|
get { return pointY; }
|
|
set { pointY = value;
|
|
this.RaisePropertyChanged("PointY");
|
|
}
|
|
}
|
|
|
|
|
|
private double heightValue;
|
|
/// <summary>
|
|
/// 高度值
|
|
/// </summary>
|
|
public double HeightValue
|
|
{
|
|
get { return heightValue; }
|
|
set { heightValue = value;
|
|
this.RaisePropertyChanged("HeightValue");
|
|
}
|
|
}
|
|
|
|
|
|
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");
|
|
}
|
|
}
|
|
|
|
public ShowInfo()
|
|
{
|
|
//默认背景颜色 白色
|
|
StatusBackground = ColorStr.White;
|
|
StatuValue = "";
|
|
}
|
|
|
|
}
|
|
}
|