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