* 几个线程控制的进度弹窗默认打开是增加延时200ms

This commit is contained in:
Sunny 2023-10-09 22:59:02 +08:00
parent 0ce8587bf7
commit e37f8a27bd
3 changed files with 9 additions and 1 deletions

View File

@ -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);
}
/// <summary>
@ -1872,6 +1874,7 @@ namespace Sunny.UI
public void ShowWaitForm(string desc = "系统正在处理中,请稍候...")
{
UIWaitFormService.ShowWaitForm(desc);
Thread.Sleep(200);
}
/// <summary>
@ -1898,6 +1901,7 @@ namespace Sunny.UI
public void ShowProcessForm(int size = 200)
{
UIProcessIndicatorFormService.ShowForm(size);
Thread.Sleep(200);
}
/// <summary>

View File

@ -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);
}
/// <summary>
@ -1134,6 +1136,7 @@ namespace Sunny.UI
public void ShowWaitForm(string desc = "系统正在处理中,请稍候...")
{
UIWaitFormService.ShowWaitForm(desc);
Thread.Sleep(200);
}
/// <summary>
@ -1151,6 +1154,7 @@ namespace Sunny.UI
public void ShowProcessForm(int size = 200)
{
UIProcessIndicatorFormService.ShowForm(size);
Thread.Sleep(200);
}
/// <summary>

View File

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net7.0-windows;net6.0-windows;net472;net40</TargetFrameworks>
<TargetFrameworks>net8.0-windows;net7.0-windows;net6.0-windows;net472;net40</TargetFrameworks>
<LangVersion>11.0</LangVersion>
<ProjectGuid>{AB1CB247-E20B-4CBE-B269-570ADDD96C53}</ProjectGuid>
<UseWindowsForms>true</UseWindowsForms>