From e93d84147f1f74852805682e85ca5ff3ee8ce070 Mon Sep 17 00:00:00 2001 From: Sunny Date: Tue, 31 Oct 2023 09:35:59 +0800 Subject: [PATCH] =?UTF-8?q?*=20=E4=BF=AE=E6=94=B9=E5=87=A0=E4=B8=AA?= =?UTF-8?q?=E8=BF=9B=E5=BA=A6=E5=BC=B9=E7=AA=97=E7=9A=84=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E6=A0=87=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Forms/UIFormService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SunnyUI/Forms/UIFormService.cs b/SunnyUI/Forms/UIFormService.cs index 7cadf835..ba6a51fe 100644 --- a/SunnyUI/Forms/UIFormService.cs +++ b/SunnyUI/Forms/UIFormService.cs @@ -30,6 +30,7 @@ namespace Sunny.UI public static void ShowProcessForm(this Form owner, int size = 200) { if (ProcessFormService.IsRun) return; + ProcessFormServiceClose = false; ProcessFormService.CreateForm(size); } @@ -50,6 +51,7 @@ namespace Sunny.UI public static void ShowWaitForm(this Form owner, string desc = "系统正在处理中,请稍候...") { if (WaitFormService.IsRun) return; + WaitFormServiceClose = false; WaitFormService.CreateForm(desc); } @@ -82,8 +84,8 @@ namespace Sunny.UI public static void ShowStatusForm(this Form owner, int maximum = 100, string desc = "系统正在处理中,请稍候...", int decimalCount = 1) { if (StatusFormService.IsRun) return; + StatusFormServiceClose = false; StatusFormService.CreateForm(maximum, desc, decimalCount); - Thread.Sleep(200); } internal static bool StatusFormServiceClose;