标签页 标题汉化

This commit is contained in:
dev
2022-03-19 16:14:32 +08:00
parent a070a6aa0e
commit 9d000b8407
16 changed files with 81 additions and 19 deletions

View File

@@ -178,6 +178,26 @@ namespace CleanMachineHMI.Utils
}
}
public static void SetSingleControlText(this Control form, Control control)
{
try
{
var key = form.Name + "|" + control.Name;
if (!GlobalHelper.ThemeLanguage.ContainsKey(key))
{
control.Text = control.Name;
}
AddzhCN(key, control.Text, "");
control.Text = GlobalHelper.ThemeLanguage[key];
}
catch (Exception ex)
{
LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
}
}
/// <summary>
/// 设定数据视图列文本
/// </summary>
@@ -234,7 +254,7 @@ namespace CleanMachineHMI.Utils
}
}
public static List<string> GetComBoboxItemArr(this Control form, string controlCode, string controlType)
public static List<string> GetComBoboxItemArr(this Control form, string controlCode)
{
try
{