From a070a6aa0efd1ce4eb2c55f6e6b0f9477f0ce50f Mon Sep 17 00:00:00 2001 From: dev Date: Sat, 19 Mar 2022 15:07:29 +0800 Subject: [PATCH] 1 --- CleanMachineHMI/Utils/frmUtil.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CleanMachineHMI/Utils/frmUtil.cs b/CleanMachineHMI/Utils/frmUtil.cs index a43082c..41aa6bb 100644 --- a/CleanMachineHMI/Utils/frmUtil.cs +++ b/CleanMachineHMI/Utils/frmUtil.cs @@ -150,7 +150,9 @@ namespace CleanMachineHMI.Utils { try { - foreach (Control item in GetAllControls(form)) + var lstControls = GetAllControls(form); + lstControls.Add(form); + foreach (Control item in lstControls) { var key = form.Name + "|" + item.Name; if (!GlobalHelper.ThemeLanguage.ContainsKey(key))