1 地震仪告警记录中故障次数隐藏;电力载波机和光电交换机的供电状态隐藏; 2 除漏水和保护板事件的数据按照浮点数解析,别的按照整数解析; 3 解决TCP Server和Client存在的问题,包括无法监测到客户端连接,无法监测到服务端断开等问题;
81 lines
1.7 KiB
C#
81 lines
1.7 KiB
C#
using JiangsuEarthquake.Common;
|
|
using LiveCharts;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace JiangsuEarthquake.Models
|
|
{
|
|
public class ChartsModel : NotifyBase
|
|
{
|
|
private ChartValues<float> values;
|
|
/// <summary>
|
|
/// 值
|
|
/// </summary>
|
|
public ChartValues<float> Values
|
|
{
|
|
get { return values; }
|
|
set { values = value; this.DoNotify(); }
|
|
}
|
|
|
|
|
|
private string value_Name;
|
|
/// <summary>
|
|
/// 标题
|
|
/// </summary>
|
|
public string Value_Name
|
|
{
|
|
get { return value_Name; }
|
|
set { value_Name = value; this.DoNotify(); }
|
|
}
|
|
|
|
|
|
private List<string> x_Time;
|
|
/// <summary>
|
|
/// x轴坐标
|
|
/// </summary>
|
|
public List<string> X_Time
|
|
{
|
|
get { return x_Time; }
|
|
set { x_Time = value; this.DoNotify(); }
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// y轴最小值
|
|
/// </summary>
|
|
private int y_MinValue;
|
|
|
|
public int Y_MinValue
|
|
{
|
|
get { return y_MinValue; }
|
|
set { y_MinValue = value; this.DoNotify(); }
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// y轴最大值
|
|
/// </summary>
|
|
private int y_MaxValue;
|
|
|
|
public int Y_MaxValue
|
|
{
|
|
get { return y_MaxValue; }
|
|
set { y_MaxValue = value; }
|
|
}
|
|
|
|
|
|
private int step;
|
|
/// <summary>
|
|
/// 纵坐标间距
|
|
/// </summary>
|
|
public int Step
|
|
{
|
|
get { return (Y_MaxValue - Y_MinValue) / 5; }
|
|
set { step = value; this.DoNotify(); }
|
|
}
|
|
}
|
|
}
|