From e37f8a27bd626e52b303af5968962af1f30d99e2 Mon Sep 17 00:00:00 2001 From: Sunny Date: Mon, 9 Oct 2023 22:59:02 +0800 Subject: [PATCH] =?UTF-8?q?*=20=E5=87=A0=E4=B8=AA=E7=BA=BF=E7=A8=8B?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E7=9A=84=E8=BF=9B=E5=BA=A6=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=89=93=E5=BC=80=E6=98=AF=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=BB=B6=E6=97=B6200ms?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Forms/UIForm.cs | 4 ++++ SunnyUI/Frames/UIPage.cs | 4 ++++ SunnyUI/SunnyUI.csproj | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/SunnyUI/Forms/UIForm.cs b/SunnyUI/Forms/UIForm.cs index c25be369..eb2d9f18 100644 --- a/SunnyUI/Forms/UIForm.cs +++ b/SunnyUI/Forms/UIForm.cs @@ -57,6 +57,7 @@ using System.ComponentModel; using System.Drawing; using System.Drawing.Design; using System.IO; +using System.Threading; using System.Windows.Forms; namespace Sunny.UI @@ -1838,6 +1839,7 @@ namespace Sunny.UI public void ShowStatusForm(int maximum = 100, string desc = "系统正在处理中,请稍候...", int decimalCount = 1) { UIStatusFormService.ShowStatusForm(maximum, desc, decimalCount); + Thread.Sleep(200); } /// @@ -1872,6 +1874,7 @@ namespace Sunny.UI public void ShowWaitForm(string desc = "系统正在处理中,请稍候...") { UIWaitFormService.ShowWaitForm(desc); + Thread.Sleep(200); } /// @@ -1898,6 +1901,7 @@ namespace Sunny.UI public void ShowProcessForm(int size = 200) { UIProcessIndicatorFormService.ShowForm(size); + Thread.Sleep(200); } /// diff --git a/SunnyUI/Frames/UIPage.cs b/SunnyUI/Frames/UIPage.cs index 1a3953cf..500dd8a4 100644 --- a/SunnyUI/Frames/UIPage.cs +++ b/SunnyUI/Frames/UIPage.cs @@ -45,6 +45,7 @@ using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.Drawing.Design; +using System.Threading; using System.Windows.Forms; namespace Sunny.UI @@ -1100,6 +1101,7 @@ namespace Sunny.UI public void ShowStatusForm(int maximum = 100, string desc = "系统正在处理中,请稍候...", int decimalCount = 1) { UIStatusFormService.ShowStatusForm(maximum, desc, decimalCount); + Thread.Sleep(200); } /// @@ -1134,6 +1136,7 @@ namespace Sunny.UI public void ShowWaitForm(string desc = "系统正在处理中,请稍候...") { UIWaitFormService.ShowWaitForm(desc); + Thread.Sleep(200); } /// @@ -1151,6 +1154,7 @@ namespace Sunny.UI public void ShowProcessForm(int size = 200) { UIProcessIndicatorFormService.ShowForm(size); + Thread.Sleep(200); } /// diff --git a/SunnyUI/SunnyUI.csproj b/SunnyUI/SunnyUI.csproj index af5826e0..b1243a78 100644 --- a/SunnyUI/SunnyUI.csproj +++ b/SunnyUI/SunnyUI.csproj @@ -1,7 +1,7 @@  - net7.0-windows;net6.0-windows;net472;net40 + net8.0-windows;net7.0-windows;net6.0-windows;net472;net40 11.0 {AB1CB247-E20B-4CBE-B269-570ADDD96C53} true