You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
117 lines
2.6 KiB
117 lines
2.6 KiB
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
|
|
{
|
|
/// <summary>
|
|
/// 记录Blackboard的相关数据
|
|
/// </summary>
|
|
[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.绿色;
|
|
|
|
/// <summary>
|
|
/// 黑板颜色
|
|
/// </summary>
|
|
public int BlackboardColor
|
|
{
|
|
get { return blackboardColor; }
|
|
set{ SetProperty(ref blackboardColor, value); }
|
|
}
|
|
|
|
/// <summary>
|
|
/// 表示是否开机启动此程序
|
|
/// </summary>
|
|
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;//画图类型
|
|
|
|
/// <summary>
|
|
/// 画图类型
|
|
/// </summary>
|
|
public int DrawType
|
|
{
|
|
get { return drawType; }
|
|
set
|
|
{
|
|
SetProperty(ref drawType, value);
|
|
}
|
|
}
|
|
|
|
[NonSerialized]
|
|
private bool? draw = false;//绘图模式是否已启动
|
|
|
|
/// <summary>
|
|
/// 绘图模式是否已启动
|
|
/// </summary>
|
|
|
|
public bool? Draw
|
|
{
|
|
get { return draw; }
|
|
set
|
|
{
|
|
SetProperty(ref draw, value);
|
|
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 线条的颜色
|
|
/// </summary>
|
|
public int LineColor
|
|
{
|
|
get { return lineColor; }
|
|
set
|
|
{
|
|
SetProperty(ref lineColor, value);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 线条粗细的值
|
|
/// </summary>
|
|
public double LineWidthValue
|
|
{
|
|
get { return lineWidthValue; }
|
|
set
|
|
{
|
|
SetProperty(ref lineWidthValue, value);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|