using EC.Entity.Warning;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace ECMonitor.PlayerDraw.Code
{
///
/// 记录Blackboard的相关数据
///
[Serializable]
public class BlackboardData : BindableBase
{
public BlackboardData()
{
}
private double lineWidthValue = 5D;
private int lineColor = (int)ColorEnum.红色;
private bool? isRun = true;
private int blackboardColor = (int)ColorEnum.绿色;
///
/// 黑板颜色
///
public int BlackboardColor
{
get { return blackboardColor; }
set{ SetProperty(ref blackboardColor, value); }
}
///
/// 表示是否开机启动此程序
///
public bool? IsRun
{
get
{
return isRun;
}
set
{
isRun = BlackboardClass.RunItem(value.Value, "视频监控", Process.GetCurrentProcess().MainModule.FileName);
SetProperty(ref isRun, value);
}
}
[NonSerialized]
private int drawType =5;//画图类型
///
/// 画图类型
///
public int DrawType
{
get { return drawType; }
set
{
SetProperty(ref drawType, value);
}
}
[NonSerialized]
private bool? draw = false;//绘图模式是否已启动
///
/// 绘图模式是否已启动
///
public bool? Draw
{
get { return draw; }
set
{
SetProperty(ref draw, value);
}
}
///
/// 线条的颜色
///
public int LineColor
{
get { return lineColor; }
set
{
SetProperty(ref lineColor, value);
}
}
///
/// 线条粗细的值
///
public double LineWidthValue
{
get { return lineWidthValue; }
set
{
SetProperty(ref lineWidthValue, value);
}
}
}
}