From ad6b36018a7ef9c145d32d6742a32a2de9c3d0fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A1=91=E6=8C=AF?= Date: Sun, 29 Jun 2025 19:58:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20WorkStationClient=20?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WorkStation.sln | 12 ++++++++++ WorkStationClient/App.xaml | 9 ++++++++ WorkStationClient/App.xaml.cs | 22 +++++++++++++++++++ .../ViewModels/MainWindowViewModel.cs | 19 ++++++++++++++++ WorkStationClient/Views/MainWindow.xaml | 10 +++++++++ WorkStationClient/Views/MainWindow.xaml.cs | 15 +++++++++++++ WorkStationClient/WorkStationClient.csproj | 10 +++++++++ 7 files changed, 97 insertions(+) create mode 100644 WorkStationClient/App.xaml create mode 100644 WorkStationClient/App.xaml.cs create mode 100644 WorkStationClient/ViewModels/MainWindowViewModel.cs create mode 100644 WorkStationClient/Views/MainWindow.xaml create mode 100644 WorkStationClient/Views/MainWindow.xaml.cs create mode 100644 WorkStationClient/WorkStationClient.csproj diff --git a/WorkStation.sln b/WorkStation.sln index fd685f0..272e37d 100644 --- a/WorkStation.sln +++ b/WorkStation.sln @@ -3,7 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.14.36221.1 d17.14 MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WorkStationClient", "WorkStationClient\WorkStationClient.csproj", "{B3D9EF99-5FA3-4533-91FE-2A107E81C4A0}" +EndProject Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B3D9EF99-5FA3-4533-91FE-2A107E81C4A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B3D9EF99-5FA3-4533-91FE-2A107E81C4A0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B3D9EF99-5FA3-4533-91FE-2A107E81C4A0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B3D9EF99-5FA3-4533-91FE-2A107E81C4A0}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection diff --git a/WorkStationClient/App.xaml b/WorkStationClient/App.xaml new file mode 100644 index 0000000..acbe2fc --- /dev/null +++ b/WorkStationClient/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/WorkStationClient/App.xaml.cs b/WorkStationClient/App.xaml.cs new file mode 100644 index 0000000..81c3495 --- /dev/null +++ b/WorkStationClient/App.xaml.cs @@ -0,0 +1,22 @@ +using System.Windows; +using Prism.Ioc; +using WorkStationClient.Views; + +namespace WorkStationClient +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App + { + protected override Window CreateShell() + { + return Container.Resolve(); + } + + protected override void RegisterTypes(IContainerRegistry containerRegistry) + { + + } + } +} diff --git a/WorkStationClient/ViewModels/MainWindowViewModel.cs b/WorkStationClient/ViewModels/MainWindowViewModel.cs new file mode 100644 index 0000000..0df0abe --- /dev/null +++ b/WorkStationClient/ViewModels/MainWindowViewModel.cs @@ -0,0 +1,19 @@ +using Prism.Mvvm; + +namespace WorkStationClient.ViewModels +{ + public class MainWindowViewModel : BindableBase + { + private string _title = "Prism Application"; + public string Title + { + get { return _title; } + set { SetProperty(ref _title, value); } + } + + public MainWindowViewModel() + { + + } + } +} diff --git a/WorkStationClient/Views/MainWindow.xaml b/WorkStationClient/Views/MainWindow.xaml new file mode 100644 index 0000000..b773011 --- /dev/null +++ b/WorkStationClient/Views/MainWindow.xaml @@ -0,0 +1,10 @@ + + + + + diff --git a/WorkStationClient/Views/MainWindow.xaml.cs b/WorkStationClient/Views/MainWindow.xaml.cs new file mode 100644 index 0000000..8437e31 --- /dev/null +++ b/WorkStationClient/Views/MainWindow.xaml.cs @@ -0,0 +1,15 @@ +using System.Windows; + +namespace WorkStationClient.Views +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + } + } +} diff --git a/WorkStationClient/WorkStationClient.csproj b/WorkStationClient/WorkStationClient.csproj new file mode 100644 index 0000000..e44cc0c --- /dev/null +++ b/WorkStationClient/WorkStationClient.csproj @@ -0,0 +1,10 @@ + + + WinExe + net6.0-windows + true + + + + + \ No newline at end of file