From 765806b7ec3d142b4feeb4736622549d5da74729 Mon Sep 17 00:00:00 2001 From: Nguyen Duy Date: Fri, 15 May 2026 11:49:48 +0700 Subject: [PATCH] refactor: rename ParsecVDisplay to ParsecDisplay and update project files --- .github/workflows/build.yml | 12 ++++++------ README.md | 6 +++--- app/App.xaml | 4 ++-- app/App.xaml.cs | 2 +- app/CLI.cs | 2 +- app/Components/Button.xaml | 4 ++-- app/Components/Button.xaml.cs | 2 +- app/Components/CloseButton.xaml | 4 ++-- app/Components/CloseButton.xaml.cs | 2 +- app/Components/CustomPage.xaml | 4 ++-- app/Components/CustomPage.xaml.cs | 2 +- app/Components/DisplayItem.xaml | 4 ++-- app/Components/DisplayItem.xaml.cs | 2 +- app/Config.cs | 2 +- app/Device.cs | 2 +- app/Display.cs | 2 +- app/Helper.cs | 2 +- app/Log.cs | 2 +- app/MainWindow.xaml | 6 +++--- app/MainWindow.xaml.cs | 2 +- app/MirrorWindow.cs | 2 +- app/{ParsecVDisplay.csproj => ParsecDisplay.csproj} | 12 ++++++------ app/PowerEvents.cs | 2 +- app/Program.cs | 4 ++-- app/Properties/AssemblyInfo.cs | 8 ++++---- app/Properties/Resources.Designer.cs | 4 ++-- app/Tray.cs | 4 ++-- app/Updater.cs | 2 +- app/Vdd/Controller.cs | 2 +- app/Vdd/Core.cs | 2 +- app/Vdd/Errors.cs | 2 +- app/Vdd/Utils.cs | 2 +- docs/VDD_CLI_USAGE.md | 2 +- parsec-vdd.sln | 2 +- 34 files changed, 59 insertions(+), 59 deletions(-) rename app/{ParsecVDisplay.csproj => ParsecDisplay.csproj} (89%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e1867b4..57fee46 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,7 +43,7 @@ jobs: - name: Target .NET 4.8 if: ${{ inputs.net480 }} run: | - (Get-Content app\ParsecVDisplay.csproj) -replace "TargetFramework>net472", "TargetFramework>net480" | Out-File app\ParsecVDisplay.csproj + (Get-Content app\ParsecDisplay.csproj) -replace "TargetFramework>net472", "TargetFramework>net480" | Out-File app\ParsecDisplay.csproj (Get-Content app\App.config) -replace "Version=v4.7.2", "Version=v4.8" | Out-File app\App.config - name: Setup msbuild @@ -52,14 +52,14 @@ jobs: - name: Build app run: | cd app - msbuild ParsecVDisplay.csproj /t:Restore - msbuild ParsecVDisplay.csproj /t:Build /p:Configuration=${{ inputs.debug && 'Debug' || 'Release' }} /p:Platform=AnyCPU + msbuild ParsecDisplay.csproj /t:Restore + msbuild ParsecDisplay.csproj /t:Build /p:Configuration=${{ inputs.debug && 'Debug' || 'Release' }} /p:Platform=AnyCPU - name: Prepare build output id: prepare-output-step run: | echo "${{ env.APP_VERSION }}+${{ env.SHORT_SHA }}" >> app\bin\version - echo "artifact-name=ParsecVDisplay-v${{ env.APP_VERSION }}-${{ env.SHORT_SHA }}" >> $env:GITHUB_OUTPUT + echo "artifact-name=ParsecDisplay-v${{ env.APP_VERSION }}-${{ env.SHORT_SHA }}" >> $env:GITHUB_OUTPUT - name: Upload build output uses: actions/upload-artifact@v4 @@ -69,5 +69,5 @@ jobs: path: | app/bin/version app/bin/vdd.cmd - app/bin/ParsecVDisplay.exe - app/bin/ParsecVDisplay.exe.config + app/bin/ParsecDisplay.exe + app/bin/ParsecDisplay.exe.config diff --git a/README.md b/README.md index b0e90fd..0596d96 100644 --- a/README.md +++ b/README.md @@ -40,9 +40,9 @@ including up to 4K and 240 Hz. This capability makes it a versatile tool for gaming, streaming, or remote work, allowing users to simulate multiple screens for an enhanced, flexible visual experience. -## 📺 ParsecVDisplay App +## 📺 ParsecDisplay App -ParsecVDisplay is a comprehensive virtual display manager for Parsec VDD, built +ParsecDisplay is a comprehensive virtual display manager for Parsec VDD, built with C# and WPF. The app provides an intuitive interface to manage virtual displays, showing the number of active displays and allowing users to add or remove specific virtual displays. It also supports features like changing @@ -67,7 +67,7 @@ its index to be used for unplugging, the maximum number of displays could be added up to 16 per adapter. You have to ping the driver periodically to keep added displays alive, otherwise all of them will be unplugged after a second. There's no direct way to manipulate added displays, you should call Win32 -Display API to change their display mode (see the ParsecVDisplay source). +Display API to change their display mode (see the ParsecDisplay source). ```mermaid flowchart LR diff --git a/app/App.xaml b/app/App.xaml index 92377ad..8eb8df7 100644 --- a/app/App.xaml +++ b/app/App.xaml @@ -1,8 +1,8 @@  diff --git a/app/App.xaml.cs b/app/App.xaml.cs index 425ce0b..3804e22 100644 --- a/app/App.xaml.cs +++ b/app/App.xaml.cs @@ -11,7 +11,7 @@ using System.Windows.Interop; using System.Windows.Markup; using System.Windows.Media; -namespace ParsecVDisplay +namespace ParsecDisplay { public partial class App : Application { diff --git a/app/CLI.cs b/app/CLI.cs index f95a371..13b9f1d 100644 --- a/app/CLI.cs +++ b/app/CLI.cs @@ -4,7 +4,7 @@ using System.Runtime.InteropServices; using System.Text.RegularExpressions; using System.Threading; -namespace ParsecVDisplay +namespace ParsecDisplay { internal static class CLI { diff --git a/app/Components/Button.xaml b/app/Components/Button.xaml index 866ff38..8fa5e51 100644 --- a/app/Components/Button.xaml +++ b/app/Components/Button.xaml @@ -1,10 +1,10 @@  diff --git a/app/Components/Button.xaml.cs b/app/Components/Button.xaml.cs index b157bef..05a6540 100644 --- a/app/Components/Button.xaml.cs +++ b/app/Components/Button.xaml.cs @@ -2,7 +2,7 @@ using System.Windows; using System.Windows.Controls; -namespace ParsecVDisplay.Components +namespace ParsecDisplay.Components { public partial class Button : UserControl { diff --git a/app/Components/CloseButton.xaml b/app/Components/CloseButton.xaml index 6d51eb1..5139cc7 100644 --- a/app/Components/CloseButton.xaml +++ b/app/Components/CloseButton.xaml @@ -1,10 +1,10 @@  /// Lightweight diagnostic logger. Appends to <exe-dir>\debug.log on each diff --git a/app/MainWindow.xaml b/app/MainWindow.xaml index e43db5b..2564dc9 100644 --- a/app/MainWindow.xaml +++ b/app/MainWindow.xaml @@ -1,11 +1,11 @@  bin\ - ParsecVDisplay - ParsecVDisplay - ParsecVDisplay.Program + ParsecDisplay + ParsecDisplay + ParsecDisplay.Program @@ -64,15 +64,15 @@ @echo off setlocal -set app_exe=%~dp0ParsecVDisplay.exe -set parent_exe=%~dp0..\ParsecVDisplay.exe +set app_exe=%~dp0ParsecDisplay.exe +set parent_exe=%~dp0..\ParsecDisplay.exe if exist "%app_exe%" ( start /b /wait "" "%app_exe%" -cli %* ) else if exist "%parent_exe%" ( start /b /wait "" "%parent_exe%" -cli %* ) else ( - echo ParsecVDisplay.exe does not exist. + echo ParsecDisplay.exe does not exist. ) endlocal diff --git a/app/PowerEvents.cs b/app/PowerEvents.cs index d29cbfc..7e8bfa3 100644 --- a/app/PowerEvents.cs +++ b/app/PowerEvents.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.InteropServices; -namespace ParsecVDisplay +namespace ParsecDisplay { internal static class PowerEvents { diff --git a/app/Program.cs b/app/Program.cs index ea721e0..e2fb9e1 100644 --- a/app/Program.cs +++ b/app/Program.cs @@ -4,12 +4,12 @@ using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; -namespace ParsecVDisplay +namespace ParsecDisplay { public static class Program { public const string AppId = "QpHOX8IBUHBznGtqk9xm1"; - public const string AppName = "ParsecVDisplay"; + public const string AppName = nameof(ParsecDisplay); public const string AppVersion = "1.0.2"; public const string GitHubRepo = "nomi-san/parsec-vdd"; diff --git a/app/Properties/AssemblyInfo.cs b/app/Properties/AssemblyInfo.cs index 78005e5..98bdc5d 100644 --- a/app/Properties/AssemblyInfo.cs +++ b/app/Properties/AssemblyInfo.cs @@ -7,11 +7,11 @@ using System.Windows; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. -[assembly: AssemblyTitle(ParsecVDisplay.Program.AppName)] +[assembly: AssemblyTitle(ParsecDisplay.Program.AppName)] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] -[assembly: AssemblyProduct(ParsecVDisplay.Program.AppName)] +[assembly: AssemblyProduct(ParsecDisplay.Program.AppName)] [assembly: AssemblyCopyright("Copyright (c) 2024")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -51,5 +51,5 @@ using System.Windows; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion(ParsecVDisplay.Program.AppVersion)] -[assembly: AssemblyFileVersion(ParsecVDisplay.Program.AppVersion)] +[assembly: AssemblyVersion(ParsecDisplay.Program.AppVersion)] +[assembly: AssemblyFileVersion(ParsecDisplay.Program.AppVersion)] diff --git a/app/Properties/Resources.Designer.cs b/app/Properties/Resources.Designer.cs index b9526a2..a815c6c 100644 --- a/app/Properties/Resources.Designer.cs +++ b/app/Properties/Resources.Designer.cs @@ -8,7 +8,7 @@ // //------------------------------------------------------------------------------ -namespace ParsecVDisplay.Properties { +namespace ParsecDisplay.Properties { using System; @@ -39,7 +39,7 @@ namespace ParsecVDisplay.Properties { internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ParsecVDisplay.Properties.Resources", typeof(Resources).Assembly); + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ParsecDisplay.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan; diff --git a/app/Tray.cs b/app/Tray.cs index 1aebf5f..8f441af 100644 --- a/app/Tray.cs +++ b/app/Tray.cs @@ -6,7 +6,7 @@ using System.Threading; using System.Threading.Tasks; using Microsoft.Win32; -namespace ParsecVDisplay +namespace ParsecDisplay { internal class Tray : ApplicationContext { @@ -47,7 +47,7 @@ namespace ParsecVDisplay System.Threading.Timer FallbackTimer; const int FallbackEvaluateDelayMs = 1000; - // ParsecVDisplay v{version} + // ParsecDisplay v{version} // ______________ // Add display // Remove last display diff --git a/app/Updater.cs b/app/Updater.cs index 5eeb6fd..a9d5ffd 100644 --- a/app/Updater.cs +++ b/app/Updater.cs @@ -5,7 +5,7 @@ using System.Net.Http.Headers; using System.Text.RegularExpressions; using System.Threading.Tasks; -namespace ParsecVDisplay +namespace ParsecDisplay { internal static class Updater { diff --git a/app/Vdd/Controller.cs b/app/Vdd/Controller.cs index 3081fb7..3687172 100644 --- a/app/Vdd/Controller.cs +++ b/app/Vdd/Controller.cs @@ -2,7 +2,7 @@ using System; using System.Collections.Generic; using System.Threading; -namespace ParsecVDisplay.Vdd +namespace ParsecDisplay.Vdd { internal static class Controller { diff --git a/app/Vdd/Core.cs b/app/Vdd/Core.cs index 3ab47ff..a5f01ef 100644 --- a/app/Vdd/Core.cs +++ b/app/Vdd/Core.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Runtime.InteropServices; -namespace ParsecVDisplay.Vdd +namespace ParsecDisplay.Vdd { internal static unsafe class Core { diff --git a/app/Vdd/Errors.cs b/app/Vdd/Errors.cs index feb0988..26deb85 100644 --- a/app/Vdd/Errors.cs +++ b/app/Vdd/Errors.cs @@ -1,6 +1,6 @@ using System; -namespace ParsecVDisplay.Vdd +namespace ParsecDisplay.Vdd { internal class ErrorDriverStatus : Exception { diff --git a/app/Vdd/Utils.cs b/app/Vdd/Utils.cs index 73f4241..f72014a 100644 --- a/app/Vdd/Utils.cs +++ b/app/Vdd/Utils.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using Microsoft.Win32; -namespace ParsecVDisplay.Vdd +namespace ParsecDisplay.Vdd { internal static class Utils { diff --git a/docs/VDD_CLI_USAGE.md b/docs/VDD_CLI_USAGE.md index 6e13502..361c443 100644 --- a/docs/VDD_CLI_USAGE.md +++ b/docs/VDD_CLI_USAGE.md @@ -1,6 +1,6 @@ # Command Line Interface -This is detailed help for CLI mode of the ParsecVDisplay app. The CLI executable +This is detailed help for CLI mode of the ParsecDisplay app. The CLI executable (`vdd`) can be installed via setup installer and can be invoked via command line environment. diff --git a/parsec-vdd.sln b/parsec-vdd.sln index f391267..cb55d6d 100644 --- a/parsec-vdd.sln +++ b/parsec-vdd.sln @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.11.35327.3 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ParsecVDisplay", "app\ParsecVDisplay.csproj", "{2D44934F-B4CF-4F2C-BD03-AE60B71AD045}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ParsecDisplay", "app\ParsecDisplay.csproj", "{2D44934F-B4CF-4F2C-BD03-AE60B71AD045}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "core", "core", "{9B03AE1C-BE49-45A8-9B89-11CE21AD1BF8}" ProjectSection(SolutionItems) = preProject