From 3601baea19542386ee7c0d4a35633f778b833b5c Mon Sep 17 00:00:00 2001 From: theitaliandeveloper Date: Wed, 29 Oct 2025 13:11:13 +0100 Subject: [PATCH] bruh --- Perfect11/Library/PowerShell.cs | 2 +- Perfect11/Library/Utilities.cs | 14 +++++++------- Perfect11/Perfect11.csproj | 3 ++- Perfect11/Program.cs | 2 +- Perfect11/Properties/Resources.Designer.cs | 20 ++++++++++---------- 5 files changed, 21 insertions(+), 20 deletions(-) diff --git a/Perfect11/Library/PowerShell.cs b/Perfect11/Library/PowerShell.cs index 17ded5e..45a2955 100644 --- a/Perfect11/Library/PowerShell.cs +++ b/Perfect11/Library/PowerShell.cs @@ -4,7 +4,7 @@ namespace Perfect11.Library { public class PowerShell { - public string Execute(string command) + public static string Execute(string command) { ProcessStartInfo psi = new ProcessStartInfo { diff --git a/Perfect11/Library/Utilities.cs b/Perfect11/Library/Utilities.cs index d6b6049..26c406b 100644 --- a/Perfect11/Library/Utilities.cs +++ b/Perfect11/Library/Utilities.cs @@ -20,14 +20,14 @@ namespace Perfect11.Library } public class Utilities { - public bool IsWindows11() + public static bool IsWindows11() { string buildNumber = (string)Registry.GetValue( @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentBuildNumber", null); return int.TryParse(buildNumber, out int build) && build >= 22000; } - public Dictionary> LoadTweaks(string path) + public static Dictionary> LoadTweaks(string path) { var categorizedPlugins = new Dictionary>(StringComparer.OrdinalIgnoreCase); @@ -58,14 +58,14 @@ namespace Perfect11.Library return categorizedPlugins; } - public bool IsAppsDarkMode() + public static bool IsAppsDarkMode() { RegistryKey rk = Registry.CurrentUser.OpenSubKey("Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize"); int value = (int)rk.GetValue("AppsUseLightTheme"); rk.Close(); return value == 0; } - public string EolApp(string app) + public static string EolApp(string app) { try { @@ -115,12 +115,12 @@ namespace Perfect11.Library return $"Error: {ex.Message}"; } } - public string GetLanguageCode() + public static string GetLanguageCode() { string languageCode = CultureInfo.CurrentUICulture.Name; return languageCode.ToLower(); } - public List LoadApps(string resourceName) + public static List LoadApps(string resourceName) { var assembly = Assembly.GetExecutingAssembly(); @@ -148,7 +148,7 @@ namespace Perfect11.Library } } } - public string GetSystemArchitecture() + public static string GetSystemArchitecture() { string arch = Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE"); string archWow64 = Environment.GetEnvironmentVariable("PROCESSOR_ARCHITEW6432"); diff --git a/Perfect11/Perfect11.csproj b/Perfect11/Perfect11.csproj index e30ffe2..b945a3c 100644 --- a/Perfect11/Perfect11.csproj +++ b/Perfect11/Perfect11.csproj @@ -58,7 +58,8 @@ Simpleicons-Team-Simple-Windows-11.ico - + + diff --git a/Perfect11/Program.cs b/Perfect11/Program.cs index 4d926ee..6f8b7a7 100644 --- a/Perfect11/Program.cs +++ b/Perfect11/Program.cs @@ -10,7 +10,7 @@ namespace Perfect11 /// The main entry point for the application. /// [STAThread] - void Main() + static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); diff --git a/Perfect11/Properties/Resources.Designer.cs b/Perfect11/Properties/Resources.Designer.cs index 15d0db2..260bc78 100644 --- a/Perfect11/Properties/Resources.Designer.cs +++ b/Perfect11/Properties/Resources.Designer.cs @@ -24,9 +24,9 @@ namespace Perfect11.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] internal class Resources { - private global::System.Resources.ResourceManager resourceMan; + private static global::System.Resources.ResourceManager resourceMan; - private global::System.Globalization.CultureInfo resourceCulture; + private static global::System.Globalization.CultureInfo resourceCulture; [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] internal Resources() { @@ -36,7 +36,7 @@ namespace Perfect11.Properties { /// Returns the cached ResourceManager instance used by this class. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal global::System.Resources.ResourceManager ResourceManager { + internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Perfect11.Properties.Resources", typeof(Resources).Assembly); @@ -51,7 +51,7 @@ namespace Perfect11.Properties { /// resource lookups using this strongly typed resource class. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal global::System.Globalization.CultureInfo Culture { + internal static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } @@ -66,7 +66,7 @@ namespace Perfect11.Properties { ///[VL] ///0. /// - internal string EI_CFG { + internal static string EI_CFG { get { return ResourceManager.GetString("EI_CFG", resourceCulture); } @@ -81,7 +81,7 @@ namespace Perfect11.Properties { /// <HideEULAPage>true</HideEULAPage> /// <HideOEMRegistrat [rest of string was truncated]";. /// - internal string unattend_OOBEAutomate { + internal static string unattend_OOBEAutomate { get { return ResourceManager.GetString("unattend_OOBEAutomate", resourceCulture); } @@ -108,7 +108,7 @@ namespace Perfect11.Properties { ///Microsoft.Services.Store.Engagement ///Microsoft.V [rest of string was truncated]";. /// - internal string UWPSystemAppList { + internal static string UWPSystemAppList { get { return ResourceManager.GetString("UWPSystemAppList", resourceCulture); } @@ -117,7 +117,7 @@ namespace Perfect11.Properties { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - internal System.Drawing.Bitmap win11logo { + internal static System.Drawing.Bitmap win11logo { get { object obj = ResourceManager.GetObject("win11logo", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -127,7 +127,7 @@ namespace Perfect11.Properties { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - internal System.Drawing.Bitmap win11wallpaperdark { + internal static System.Drawing.Bitmap win11wallpaperdark { get { object obj = ResourceManager.GetObject("win11wallpaperdark", resourceCulture); return ((System.Drawing.Bitmap)(obj)); @@ -137,7 +137,7 @@ namespace Perfect11.Properties { /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// - internal System.Drawing.Bitmap win11wallpaperlight { + internal static System.Drawing.Bitmap win11wallpaperlight { get { object obj = ResourceManager.GetObject("win11wallpaperlight", resourceCulture); return ((System.Drawing.Bitmap)(obj));