From 21e28b068c8d0763a6d4ab613388a77a0db157fb Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 03 三月 2025 19:01:30 +0800
Subject: [PATCH] 优化结构;

---
 WPFProject/LoadingWindow.xaml.cs |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/WPFProject/LoadingWindow.xaml.cs b/WPFProject/LoadingWindow.xaml.cs
index 6a857bb..49b44ce 100644
--- a/WPFProject/LoadingWindow.xaml.cs
+++ b/WPFProject/LoadingWindow.xaml.cs
@@ -1,4 +1,5 @@
-锘縰sing System.Threading.Tasks;
+锘縰sing System;
+using System.Threading.Tasks;
 using System.Windows;
 using HMI.Base;
 
@@ -24,9 +25,9 @@
 
         private void Loader_LoadMessageAppend(object sender, string e)
         {
-            Dispatcher.BeginInvoke(() =>
+            this.Dispatcher.BeginInvoke((Action)delegate ()
             {
-                Console.Text = Console.Text+$"{e}\r\n";
+                Console.Text = Console.Text + $"{e}\r\n";
             });
         }
 

--
Gitblit v1.9.1