启动 加载语言配置文件

This commit is contained in:
ehkang
2022-03-18 19:06:26 +08:00
parent 0a4fe0907b
commit 2b39fb593c
48 changed files with 4487 additions and 393 deletions

View File

@@ -27,7 +27,7 @@ namespace CleanMachineHMI.frmChild
private void frmAddCleanCode_Load(object sender, EventArgs e)
{
InitControlEvent();
this.SetFormControlText(GlobalHelper.LanguageCode);
this.SetFormControlText();
}
private void txt_GotFocus(object sender, EventArgs e)
{
@@ -59,12 +59,12 @@ namespace CleanMachineHMI.frmChild
txtCleanModeCode.Enabled = false;
txtCleanModeName.Text = dt.Rows[0]["CLEAN_MODE_NAME"].ToString();
}
this.SetFormControlText(GlobalHelper.LanguageCode);
this.SetFormControlText();
kryptonPanel1.Focus();
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("修改清洁方式数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("修改清洁方式数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
}
}
@@ -75,7 +75,7 @@ namespace CleanMachineHMI.frmChild
if (string.IsNullOrEmpty(txtCleanModeName.Text))
{
//KryptonMessageBox.Show("请输入板材名称!");
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入清洗方式名称!", "EnterCleanNameInfo"));
KryptonMessageBox.Show(this.GetInfoText("请输入清洗方式名称!", "EnterCleanNameInfo"));
return;
}
string sql = $@"update BAS_CLEAN_MODE set CLEAN_MODE_NAME = '{txtCleanModeName.Text}',UPDATE_BY = '{GlobalHelper.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime') where CLEAN_MODE_ID = '{CleanModeId}'";
@@ -83,7 +83,7 @@ namespace CleanMachineHMI.frmChild
if (row > 0)
{
//KryptonMessageBox.Show("修改清洗方式数据成功!");
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑清洗方式数据成功!", "EditSuccessInfo"));
KryptonMessageBox.Show(this.GetInfoText("编辑清洗方式数据成功!", "EditSuccessInfo"));
frmCleanMode.RefreshFrmHost();
this.Close();
@@ -91,12 +91,12 @@ namespace CleanMachineHMI.frmChild
else
{
//KryptonMessageBox.Show("修改清洗方式数据失败!");
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑清洗方式数据失败!", "EditFailInfo"));
KryptonMessageBox.Show(this.GetInfoText("编辑清洗方式数据失败!", "EditFailInfo"));
}
}
catch (Exception ex)
{
KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑清洗方式数据发生异常", "EditCleanModeDataExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.GetInfoText("编辑清洗方式数据发生异常", "EditCleanModeDataExp") + $":【{ex.Message}】!");
}
}