From 228bbe2c37daae54deb8f08c6aeaa3dad17e4dab Mon Sep 17 00:00:00 2001 From: Kevin Zhang Date: Tue, 20 Jul 2021 10:59:05 +0800 Subject: [PATCH] Change NameSpace Name --- Classes/WindowsSetting.cs | 2 +- ...Settings.csproj => Flow.Plugin.WindowsSettings.csproj | 4 ++-- Helper/ContextMenuHelper.cs | 5 +++-- Helper/JsonSettingsListHelper.cs | 3 ++- Helper/ResultHelper.cs | 6 +++--- Helper/TranslationHelper.cs | 5 +++-- Helper/UnsupportedSettingsHelper.cs | 5 +++-- Log.cs | 2 +- Main.cs | 8 ++++---- Properties/Resources.Designer.cs | 9 ++++----- 10 files changed, 26 insertions(+), 23 deletions(-) rename Microsoft.PowerToys.Run.Plugin.WindowsSettings.csproj => Flow.Plugin.WindowsSettings.csproj (94%) diff --git a/Classes/WindowsSetting.cs b/Classes/WindowsSetting.cs index 5c5d2654a..0a598d122 100644 --- a/Classes/WindowsSetting.cs +++ b/Classes/WindowsSetting.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; -namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings +namespace Flow.Plugin.WindowsSettings.Classes { /// /// A windows setting diff --git a/Microsoft.PowerToys.Run.Plugin.WindowsSettings.csproj b/Flow.Plugin.WindowsSettings.csproj similarity index 94% rename from Microsoft.PowerToys.Run.Plugin.WindowsSettings.csproj rename to Flow.Plugin.WindowsSettings.csproj index 51656745e..90a627db8 100644 --- a/Microsoft.PowerToys.Run.Plugin.WindowsSettings.csproj +++ b/Flow.Plugin.WindowsSettings.csproj @@ -3,8 +3,8 @@ net5.0-windows {5043CECE-E6A7-4867-9CBE-02D27D83747A} Properties - Microsoft.PowerToys.Run.Plugin.WindowsSettings - Microsoft.PowerToys.Run.Plugin.WindowsSettings + Flow.Plugin.WindowsSettings + Flow.Plugin.WindowsSettings false false x64 diff --git a/Helper/ContextMenuHelper.cs b/Helper/ContextMenuHelper.cs index 15b9f0d3e..c8adc57c4 100644 --- a/Helper/ContextMenuHelper.cs +++ b/Helper/ContextMenuHelper.cs @@ -6,9 +6,10 @@ using System; using System.Collections.Generic; using System.Windows; using Flow.Launcher.Plugin; -using Microsoft.PowerToys.Run.Plugin.WindowsSettings.Properties; +using Flow.Plugin.WindowsSettings.Classes; +using Flow.Plugin.WindowsSettings.Properties; -namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Helper +namespace Flow.Plugin.WindowsSettings.Helper { /// /// Helper class to easier work with context menu entries diff --git a/Helper/JsonSettingsListHelper.cs b/Helper/JsonSettingsListHelper.cs index bff041864..1a6d35fa5 100644 --- a/Helper/JsonSettingsListHelper.cs +++ b/Helper/JsonSettingsListHelper.cs @@ -9,8 +9,9 @@ using System.Linq; using System.Reflection; using System.Text.Json; using System.Text.Json.Serialization; +using Flow.Plugin.WindowsSettings.Classes; -namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Helper +namespace Flow.Plugin.WindowsSettings.Helper { /// /// Helper class to easier work with the JSON file that contains all Windows settings diff --git a/Helper/ResultHelper.cs b/Helper/ResultHelper.cs index 759cae7ee..dcda4c073 100644 --- a/Helper/ResultHelper.cs +++ b/Helper/ResultHelper.cs @@ -8,10 +8,10 @@ using System.Diagnostics; using System.Linq; using System.Text; using Flow.Launcher.Plugin; -using Flow.Launcher.Plugin.SharedModels; -using Microsoft.PowerToys.Run.Plugin.WindowsSettings.Properties; +using Flow.Plugin.WindowsSettings.Classes; +using Flow.Plugin.WindowsSettings.Properties; -namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Helper +namespace Flow.Plugin.WindowsSettings.Helper { /// /// Helper class to easier work with results diff --git a/Helper/TranslationHelper.cs b/Helper/TranslationHelper.cs index 4e8fa40ed..0e7b950e8 100644 --- a/Helper/TranslationHelper.cs +++ b/Helper/TranslationHelper.cs @@ -5,9 +5,10 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; -using Microsoft.PowerToys.Run.Plugin.WindowsSettings.Properties; +using Flow.Plugin.WindowsSettings.Classes; +using Flow.Plugin.WindowsSettings.Properties; -namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Helper +namespace Flow.Plugin.WindowsSettings.Helper { /// /// Helper class to easier work with translations. diff --git a/Helper/UnsupportedSettingsHelper.cs b/Helper/UnsupportedSettingsHelper.cs index a323f476d..b056ee046 100644 --- a/Helper/UnsupportedSettingsHelper.cs +++ b/Helper/UnsupportedSettingsHelper.cs @@ -5,8 +5,9 @@ using System; using System.Collections.Generic; using System.Linq; +using Flow.Plugin.WindowsSettings.Classes; -namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Helper +namespace Flow.Plugin.WindowsSettings.Helper { /// /// Helper class to easier work with the version of the Windows OS @@ -68,7 +69,7 @@ namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Helper try { - registryValueData = Win32.Registry.GetValue(registryKey, valueName, uint.MinValue); + registryValueData = Microsoft.Win32.Registry.GetValue(registryKey, valueName, uint.MinValue); } catch (Exception exception) { diff --git a/Log.cs b/Log.cs index 7991f5a55..f45256173 100644 --- a/Log.cs +++ b/Log.cs @@ -2,7 +2,7 @@ using System.Runtime.CompilerServices; using Flow.Launcher.Plugin; -namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings +namespace Flow.Plugin.WindowsSettings { public static class Log { diff --git a/Main.cs b/Main.cs index 00fe2367e..f66d99ad8 100644 --- a/Main.cs +++ b/Main.cs @@ -4,13 +4,13 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Reflection; using Flow.Launcher.Plugin; -using Microsoft.PowerToys.Run.Plugin.WindowsSettings.Helper; -using Microsoft.PowerToys.Run.Plugin.WindowsSettings.Properties; +using Flow.Plugin.WindowsSettings.Classes; +using Flow.Plugin.WindowsSettings.Helper; +using Flow.Plugin.WindowsSettings.Properties; -namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings +namespace Flow.Plugin.WindowsSettings { /// /// Main class of this plugin that implement all used interfaces. diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs index 37a3d1e42..1c5ca3c96 100644 --- a/Properties/Resources.Designer.cs +++ b/Properties/Resources.Designer.cs @@ -8,10 +8,9 @@ // //------------------------------------------------------------------------------ -namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Properties { - using System; - - +namespace Flow.Plugin.WindowsSettings.Properties { + + /// /// A strongly-typed resource class, for looking up localized strings, etc. /// @@ -39,7 +38,7 @@ namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings.Properties { internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.PowerToys.Run.Plugin.WindowsSettings.Properties.Resources", typeof(Resources).Assembly); + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Flow.Plugin.WindowsSettings.Properties.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan;