Commit 74ca67e9 LN

气压报警时增加文字显示

1 个父辈 b3049428
......@@ -8,6 +8,7 @@ using System.Threading.Tasks;
using System.Windows.Forms;
using TSA_V.Common;
using TSA_V.DeviceLibrary;
using static TSA_V.Common.LogUtil;
namespace TSA_V
{
......@@ -44,7 +45,7 @@ namespace TSA_V
}
else if(TSAVBean.NoAirAlarm)
{
msg = "未检测到气压信号";
msg = ResourceControl.GetString(ResourceControl.NoAirAlarm, "未检测到气压信号"); ;
return true;
}
return false;
......
......@@ -161,5 +161,10 @@ namespace TSA_V
/// 等待目标位置{0}超时
/// </summary>
public static string WaitChangeWOk = "WaitChangeWOk";
/// <summary>
/// 未检测到气压信号
/// </summary>
public static string NoAirAlarm = "NoAirAlarm";
}
}
......@@ -928,6 +928,9 @@ namespace TSA_V.DeviceLibrary
if (TSAVBean.IsInSuddenDown)
{
ShowMsg = ResourceControl.GetString(ResourceControl.DeviceInSuddenStop, "设备急停中");
}else if (TSAVBean.NoAirAlarm)
{
ShowMsg = ResourceControl.GetString(ResourceControl.NoAirAlarm, "未检测到气压信号");
}
else if (TSAVBean.Status.Equals(TSAVStatus.Wait))
{
......
......@@ -2579,4 +2579,7 @@
<data name="PreNotEnd" xml:space="preserve">
<value>The last adjustment of width has not yet ended</value>
</data>
<data name="NoAirAlarm" xml:space="preserve">
<value>No air pressure signal.</value>
</data>
</root>
\ No newline at end of file
......@@ -2577,4 +2577,7 @@
<data name="PreNotEnd" xml:space="preserve">
<value>上次调宽还未结束</value>
</data>
<data name="NoAirAlarm" xml:space="preserve">
<value>未检测到气压信号</value>
</data>
</root>
\ No newline at end of file
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!