Merge branch 'dev_plus' of http://10.0.0.94:10080/nx.wms/CleanMachine into dev_plus

This commit is contained in:
dev
2022-05-24 09:58:15 +08:00
9 changed files with 2367 additions and 2344 deletions

View File

@@ -185,22 +185,29 @@ namespace CleanMachineHMI.Utils
public static void SetSingleControlText(this Control form, Control control)
{
#if RELEASE
try
{
var key = form.Name + "|" + control.Name;
if (!Global.ThemeLanguage.ContainsKey(key))
{
control.Text = control.Name;
}
AddzhCN(key, control.Text, "");
#endif
var key = form.Name + "|" + control.Name;
if (!Global.ThemeLanguage.ContainsKey(key))
{
control.Text = control.Name;
}
else
{
control.Text = Global.ThemeLanguage[key];
}
AddzhCN(key, control.Text, "");
#if RELEASE
}
catch (Exception ex)
{
LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
}
#endif
}
/// <summary>