From c91423ee48ae801d11bc5f0f74bac36b188ab879 Mon Sep 17 00:00:00 2001
From: denglihong2007 <98096191+denglihong2007@users.noreply.github.com>
Date: Wed, 30 Jul 2025 20:41:54 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=B0=E9=93=81=E5=B1=8F=E6=97=A0?=
=?UTF-8?q?=E6=B3=95=E5=90=AF=E5=8A=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
CRSim.ScreenSimulator/CRSim.ScreenSimulator.csproj | 11 +++++++++++
.../ViewModels/MetroPlatformScreenViewModel.cs | 1 +
2 files changed, 12 insertions(+)
diff --git a/CRSim.ScreenSimulator/CRSim.ScreenSimulator.csproj b/CRSim.ScreenSimulator/CRSim.ScreenSimulator.csproj
index 1447cf2..a7ed7e2 100644
--- a/CRSim.ScreenSimulator/CRSim.ScreenSimulator.csproj
+++ b/CRSim.ScreenSimulator/CRSim.ScreenSimulator.csproj
@@ -10,6 +10,12 @@
CRSim.ScreenSimulator
True
+
+
+
+
+
+
@@ -19,5 +25,10 @@
+
+
+
+
+
diff --git a/CRSim.ScreenSimulator/ViewModels/MetroPlatformScreenViewModel.cs b/CRSim.ScreenSimulator/ViewModels/MetroPlatformScreenViewModel.cs
index 6b6a8cd..52556db 100644
--- a/CRSim.ScreenSimulator/ViewModels/MetroPlatformScreenViewModel.cs
+++ b/CRSim.ScreenSimulator/ViewModels/MetroPlatformScreenViewModel.cs
@@ -19,6 +19,7 @@ namespace CRSim.ScreenSimulator.ViewModels
private string _text;
[ObservableProperty]
private Uri _video;
+ public System.Windows.Threading.Dispatcher UIDispatcher { get; set; }
public List TrainInfos { get; set; } = [];
public MetroPlatformScreenViewModel(ITimeService timeService, ISettingsService settingsService)
{