From ed113213fc94c3d9886ea08dfddd09d08d9ba7d5 Mon Sep 17 00:00:00 2001 From: ningshuxia <ningshuxia0927@outlook.com> Date: 星期三, 16 四月 2025 19:19:34 +0800 Subject: [PATCH] 调度代码修正 --- 01-api/_Expand/IStation.Win.Schedule/Core/Alert/AlertTool.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/01-api/_Expand/IStation.Win.Schedule/Core/Alert/AlertTool.cs b/01-api/_Expand/IStation.Win.Schedule/Core/Alert/AlertTool.cs index 937a481..13d15b3 100644 --- a/01-api/_Expand/IStation.Win.Schedule/Core/Alert/AlertTool.cs +++ b/01-api/_Expand/IStation.Win.Schedule/Core/Alert/AlertTool.cs @@ -8,12 +8,12 @@ private static AlertControl Alert { get - { + { if (_alert == null) { _alert = new AlertControl(); //_alert.FormMaxCount = 1; - _alert.AutoFormDelay = 5 * 1000; + _alert.AutoFormDelay = 2 * 1000; _alert.AutoHeight = true; } return _alert; @@ -29,7 +29,7 @@ /// <param name="text"></param> public static void ShowInfo(Form owner, string caption, string text) { - DevExpress.XtraBars.Alerter.AlertInfo info = new DevExpress.XtraBars.Alerter.AlertInfo(caption, text); + DevExpress.XtraBars.Alerter.AlertInfo info = new DevExpress.XtraBars.Alerter.AlertInfo(caption, text); AlertTool.Alert.Show(owner, info); } -- Gitblit v1.9.3