From 8dd7cae66338a644266ca752357e2700ebfc80b1 Mon Sep 17 00:00:00 2001
From: wxl0430 <141288415+wxl0430@users.noreply.github.com>
Date: Sun, 2 Mar 2025 21:07:15 +0800
Subject: [PATCH] Add files via upload
---
.../Stations/Zibo/SecondaryScreenView.xaml | 154 ++++++++++++++++++
.../Stations/Zibo/SecondaryScreenView.xaml.cs | 33 ++++
2 files changed, 187 insertions(+)
create mode 100644 CRSim/Views/Windows/Stations/Zibo/SecondaryScreenView.xaml
create mode 100644 CRSim/Views/Windows/Stations/Zibo/SecondaryScreenView.xaml.cs
diff --git a/CRSim/Views/Windows/Stations/Zibo/SecondaryScreenView.xaml b/CRSim/Views/Windows/Stations/Zibo/SecondaryScreenView.xaml
new file mode 100644
index 0000000..fae4084
--- /dev/null
+++ b/CRSim/Views/Windows/Stations/Zibo/SecondaryScreenView.xaml
@@ -0,0 +1,154 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/CRSim/Views/Windows/Stations/Zibo/SecondaryScreenView.xaml.cs b/CRSim/Views/Windows/Stations/Zibo/SecondaryScreenView.xaml.cs
new file mode 100644
index 0000000..52f9686
--- /dev/null
+++ b/CRSim/Views/Windows/Stations/Zibo/SecondaryScreenView.xaml.cs
@@ -0,0 +1,33 @@
+using CRSim.ViewModels.Zibo;
+
+namespace CRSim.Views.Zibo
+{
+ ///
+ /// SecondaryScreen.xaml 的交互逻辑
+ ///
+ public partial class SecondaryScreenView : Window
+ {
+ public SecondaryScreenViewModel ViewModel { get; }
+ public SecondaryScreenView(SecondaryScreenViewModel viewModel)
+ {
+ InitializeComponent();
+ ViewModel = viewModel;
+ DataContext = viewModel;
+ }
+ private void Window_MouseDown(object sender, MouseButtonEventArgs e)
+ {
+ if (e.ChangedButton == MouseButton.Left)
+ {
+ DragMove();
+ }
+ }
+
+ private void Window_KeyDown(object sender, KeyEventArgs e)
+ {
+ if (e.Key == Key.Escape)
+ {
+ Close();
+ }
+ }
+ }
+}