From 2b1a6417285597bc58ef28aa3f01aeee2532cd19 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期二, 04 三月 2025 13:36:17 +0800
Subject: [PATCH] 优化UI;
---
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