更改了进度提示框,不在任务栏显示,并置顶

This commit is contained in:
Sunny 2022-12-17 14:19:08 +08:00
parent 5ed6aaf7a6
commit 8306e3ffcb

View File

@ -55,6 +55,8 @@ namespace Sunny.UI
thread = new Thread(delegate ()
{
form = new UIWaitForm(desc);
form.ShowInTaskbar = false;
form.TopMost = true;
form.Render();
if (IsRun) Application.Run(form);
});
@ -140,6 +142,8 @@ namespace Sunny.UI
thread = new Thread(delegate ()
{
form = new UIStatusForm(max, desc, decimalCount);
form.ShowInTaskbar = false;
form.TopMost = true;
form.Render();
form.VisibleChanged += WaitForm_VisibleChanged;
Application.Run(form);