wxr
2024-09-19 856667ac31eba65dfa0a38c023e05c869e98ceda
HDL_ON/UI/UI2/3-Intelligence/Scene/SceneEditPage.cs
@@ -595,13 +595,23 @@
                    };
                    row.AddChidren(btnFunctionDelayInfo);
                    if (!string.IsNullOrEmpty(scenefunction.delay) && Convert.ToInt32(scenefunction.delay) > 0)
                    try
                    {
                        btnFunctionDelayInfo.Text = Language.StringByID(StringId.Delay) + " " + new Scene() { delay = scenefunction.delay }.GetDelayText();
                        int delayTime = 0;
                        int.TryParse(scenefunction.delay, out delayTime);
                        if (!string.IsNullOrEmpty(scenefunction.delay) && delayTime > 0)
                        {
                            btnFunctionDelayInfo.Text = Language.StringByID(StringId.Delay) + " " + new Scene() { delay = scenefunction.delay }.GetDelayText();
                        }
                        else
                        {
                            btnFunctionDelayInfo.Text = Language.StringByID(StringId.NoDelay);
                        }
                    }
                    else
                    catch (Exception ex)
                    {
                        btnFunctionDelayInfo.Text = Language.StringByID(StringId.NoDelay);
                        MainPage.Log("Error", $"场景编辑,转译数据异常:{ex.StackTrace}");
                    }