修复错误
This commit is contained in:
@@ -182,22 +182,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>
|
||||
|
||||
Reference in New Issue
Block a user