20240301_JSEQ_upperpc/JiangsuEarthquakeNow/JiangsuEarthquake/Models/ChartsTwoYModel.cs
XuMin 3b6c570800 1 经过电控腔测试和升压站测试;
2 解决了后一个通信连接会影响前一个通信连接的问题;
3 测试过程中存在的问题修改;
2024-09-03 16:30:34 +08:00

138 lines
3.0 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 ChartsTwoYModel : NotifyBase
{
private ChartValues<float> values1;
/// <summary>
/// 值1
/// </summary>
public ChartValues<float> Values1
{
get { return values1; }
set { values1 = value; this.DoNotify(); }
}
private ChartValues<float> values2;
/// <summary>
/// 值2
/// </summary>
public ChartValues<float> Values2
{
get { return values2; }
set { values2 = value; this.DoNotify(); }
}
private string value_Name1;
/// <summary>
/// 标题1
/// </summary>
public string Value_Name1
{
get { return value_Name1; }
set { value_Name1 = value; this.DoNotify(); }
}
private string value_Name2;
/// <summary>
/// 标题2
/// </summary>
public string Value_Name2
{
get { return value_Name2; }
set { value_Name2 = 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轴最小值1
/// </summary>
private int y_MinValue1;
public int Y_MinValue1
{
get { return y_MinValue1; }
set { y_MinValue1 = value; this.DoNotify(); }
}
/// <summary>
/// y轴最小值2
/// </summary>
private int y_MinValue2;
public int Y_MinValue2
{
get { return y_MinValue2; }
set { y_MinValue2 = value; this.DoNotify(); }
}
/// <summary>
/// y轴最大值1
/// </summary>
private int y_MaxValue1;
public int Y_MaxValue1
{
get { return y_MaxValue1; }
set { y_MaxValue1 = value; }
}
/// <summary>
/// y轴最大值2
/// </summary>
private int y_MaxValue2;
public int Y_MaxValue2
{
get { return y_MaxValue2; }
set { y_MaxValue2 = value; }
}
private int step1;
/// <summary>
/// 纵坐标间距1
/// </summary>
public int Step1
{
get { return (Y_MaxValue1 - Y_MinValue1) / 5; }
set { step1 = value; this.DoNotify(); }
}
private float step2;
/// <summary>
/// 纵坐标间距2
/// </summary>
public float Step2
{
get { return (Y_MaxValue2 - Y_MinValue2) / 5; }
set { step2 = value; this.DoNotify(); }
}
}
}