HMI.UI/MaskWindow.xaml.cs
@@ -50,9 +50,19 @@ //})); Task.Run(() => { // 暂停线程令UI完全展示 if (delay > 0) Thread.Sleep(delay); action(this); try { // 暂停线程令UI完全展示 if (delay > 0) Thread.Sleep(delay); action(this); } finally { Dispatcher.Invoke(() => { this.Close(); }); } }); }