dropped support for WinForms and .NET 4.7.2. Refactored to modern .NET and C#

This commit is contained in:
2026-06-10 22:41:05 -05:00
parent 193de6059e
commit e23feff44d
235 changed files with 28 additions and 24958 deletions
@@ -1,4 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
// If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
// Copyright (C) LibreHardwareMonitor and Contributors.
// Partial Copyright (C) Michael Möller <mmoeller@openhardwaremonitor.org> and Contributors.
@@ -20,13 +20,10 @@ public static class OperatingSystem
{
// The operating system doesn't change during execution so let's query it just one time.
PlatformID platform = Environment.OSVersion.Platform;
Version version = Environment.OSVersion.Version;
IsUnix = platform is PlatformID.Unix or PlatformID.MacOSX;
if (Environment.Is64BitOperatingSystem)
Is64Bit = true;
IsWindows8OrGreater = !IsUnix && ((version.Major == 6 && version.Minor >= 2) || version.Major > 6);
}
/// <summary>
@@ -38,9 +35,4 @@ public static class OperatingSystem
/// Gets information about whether the current system is Unix based.
/// </summary>
public static bool IsUnix { get; }
/// <summary>
/// Returns true if the current system is Windows 8 or a more recent Windows version
/// </summary>
public static bool IsWindows8OrGreater { get; }
}