143 lines
3.5 KiB
C#
143 lines
3.5 KiB
C#
|
|
using JiangsuEarthquake.Common;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace JiangsuEarthquake.Models
|
|||
|
|
{
|
|||
|
|
public class ErrorMessageModel : NotifyBase
|
|||
|
|
{
|
|||
|
|
private string _messageCon;
|
|||
|
|
|
|||
|
|
public string _MessageCon
|
|||
|
|
{
|
|||
|
|
get { return _messageCon; }
|
|||
|
|
set { _messageCon = value; this.DoNotify(); }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
#region 串口连接信息
|
|||
|
|
private string comStateMessage = "未连接";
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 北斗串口连接状态 已连接/未连接
|
|||
|
|
/// </summary>
|
|||
|
|
public string ComStateMessage
|
|||
|
|
{
|
|||
|
|
get { return comStateMessage; }
|
|||
|
|
set { comStateMessage = value; this.DoNotify(); }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
private string comConMessage;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 串口连接信息 端口号+波特率
|
|||
|
|
/// </summary>
|
|||
|
|
public string ComConMessage
|
|||
|
|
{
|
|||
|
|
get { return comConMessage; }
|
|||
|
|
set { comConMessage = value; this.DoNotify(); }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private string comConBtn = "连接";
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 串口连接按钮名称信息
|
|||
|
|
/// </summary>
|
|||
|
|
public string ComConBtn
|
|||
|
|
{
|
|||
|
|
get { return comConBtn; }
|
|||
|
|
set { comConBtn = value; this.DoNotify(); }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
|
|||
|
|
#region Socket1连接信息
|
|||
|
|
private string socket1StateMessage = "未连接";
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Socket1连接状态 已连接/未连接
|
|||
|
|
/// </summary>
|
|||
|
|
public string Socket1StateMessage
|
|||
|
|
{
|
|||
|
|
get { return socket1StateMessage; }
|
|||
|
|
set { socket1StateMessage = value; this.DoNotify(); }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
private string socket1ConMessage;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Socket1连接信息 IP+端口号
|
|||
|
|
/// </summary>
|
|||
|
|
public string Socket1ConMessage
|
|||
|
|
{
|
|||
|
|
get { return socket1ConMessage; }
|
|||
|
|
set { socket1ConMessage = value; this.DoNotify(); }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
private string socket1ConBtn = "连接";
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Socket1连接按钮名称信息
|
|||
|
|
/// </summary>
|
|||
|
|
public string Socket1ConBtn
|
|||
|
|
{
|
|||
|
|
get { return socket1ConBtn; }
|
|||
|
|
set { socket1ConBtn = value; this.DoNotify(); }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
|
|||
|
|
#region Socket2连接信息
|
|||
|
|
private string socket2StateMessage = "未连接";
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Socket1连接状态 已连接/未连接
|
|||
|
|
/// </summary>
|
|||
|
|
public string Socket2StateMessage
|
|||
|
|
{
|
|||
|
|
get { return socket2StateMessage; }
|
|||
|
|
set { socket2StateMessage = value; this.DoNotify(); }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
private string socket2ConMessage;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Socket1连接信息 IP+端口号
|
|||
|
|
/// </summary>
|
|||
|
|
public string Socket2ConMessage
|
|||
|
|
{
|
|||
|
|
get { return socket2ConMessage; }
|
|||
|
|
set { socket2ConMessage = value; this.DoNotify(); }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
private string socket2ConBtn = "连接";
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// Socket2连接按钮名称信息
|
|||
|
|
/// </summary>
|
|||
|
|
public string Socket2ConBtn
|
|||
|
|
{
|
|||
|
|
get { return socket2ConBtn; }
|
|||
|
|
set { socket2ConBtn = value; this.DoNotify(); }
|
|||
|
|
}
|
|||
|
|
#endregion
|
|||
|
|
|
|||
|
|
|
|||
|
|
private string controlMessage;
|
|||
|
|
|
|||
|
|
public string ControlMessage
|
|||
|
|
{
|
|||
|
|
get { return controlMessage; }
|
|||
|
|
set { controlMessage = value; this.DoNotify(); }
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|