修改结构

This commit is contained in:
gongxh
2022-05-06 08:45:56 +08:00
parent 74a05e7bb3
commit 7e9c7ca86f
50 changed files with 352 additions and 251 deletions

View File

@@ -68,7 +68,7 @@ namespace CleanMachineHMI.frmChild
}
catch (Exception ex)
{
KryptonMessageBox.Show(this.GetInfoText("加载出料运行方向切换界面发生异常", "LoadSwitchRunDirectionExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.T("加载出料运行方向切换界面发生异常", "LoadSwitchRunDirectionExp") + $":【{ex.Message}】!");
}
}
@@ -78,7 +78,7 @@ namespace CleanMachineHMI.frmChild
{
if (kcmb_SwitchRunDirection.SelectedIndex == 0)
{
KryptonMessageBox.Show(this.GetInfoText("请选择切换方向!", "SelectSwitchDirectionInfo"));
KryptonMessageBox.Show(this.T("请选择切换方向!", "SelectSwitchDirectionInfo"));
return;
}
if (!PlcOperationHelper.Instance.isConn)
@@ -88,17 +88,17 @@ namespace CleanMachineHMI.frmChild
}
if (PlcOperationHelper.Instance.WritePlcItem("DischargeDirectionSelection", (kcmb_SwitchRunDirection.SelectedIndex - 1).ToString(), PlcItemTypeDesc.D))
{
KryptonMessageBox.Show(this.GetInfoText("切换出料运行方向成功!", "SwitchDirectionSuccessInfo"));
KryptonMessageBox.Show(this.T("切换出料运行方向成功!", "SwitchDirectionSuccessInfo"));
this.Close();
}
else
{
KryptonMessageBox.Show(this.GetInfoText("切换出料运行方向失败!", "SwitchDirectionFailInfo"));
KryptonMessageBox.Show(this.T("切换出料运行方向失败!", "SwitchDirectionFailInfo"));
}
}
catch (Exception ex)
{
KryptonMessageBox.Show(this.GetInfoText("切换出料运行方向的函数发生异常", "SwitchRunDirectionExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.T("切换出料运行方向的函数发生异常", "SwitchRunDirectionExp") + $":【{ex.Message}】!");
}
}