mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Improved the support for dragging and dropping images from a website, now also parsing HTML img src information, to be able to download that image. For this we need the HtmlAgilityPack.dll (#294)
Removed a lot of dead code, and remove the old OCR code as we don't even know if it still works.
This commit is contained in:
parent
90cab1e8a3
commit
26fe579d31
151 changed files with 1138 additions and 8174 deletions
|
@ -15,51 +15,18 @@ namespace GreenshotPlugin.Core
|
|||
/// </summary>
|
||||
public static Version WinVersion { get; } = Environment.OSVersion.Version;
|
||||
|
||||
public static double WinVersionTotal = WinVersion.Major + (double)WinVersion.Minor / 10;
|
||||
/// <summary>
|
||||
/// Test if the current OS is Windows 10
|
||||
/// </summary>
|
||||
/// <returns>true if we are running on Windows 10</returns>
|
||||
public static bool IsWindows10 { get; } = WinVersion.Major == 10;
|
||||
|
||||
/// <summary>
|
||||
/// Test if the current OS is before Windows 10
|
||||
/// </summary>
|
||||
/// <returns>true if we are running on Windows before 10</returns>
|
||||
public static bool IsBeforeWindows10 { get; } = WinVersion.Major < 10;
|
||||
|
||||
/// <summary>
|
||||
/// Test if the current OS is Windows 10 or later
|
||||
/// </summary>
|
||||
/// <returns>true if we are running on Windows 10 or later</returns>
|
||||
public static bool IsWindows10OrLater { get; } = WinVersion.Major >= 10;
|
||||
|
||||
/// <summary>
|
||||
/// Test if the current OS is Windows 7 or later
|
||||
/// </summary>
|
||||
/// <returns>true if we are running on Windows 7 or later</returns>
|
||||
public static bool IsWindows7OrLater { get; } = WinVersion.Major == 6 && WinVersion.Minor >= 1 || WinVersion.Major > 6;
|
||||
|
||||
public static bool IsWindows7OrLower { get; } = WinVersionTotal <= 6.1;
|
||||
|
||||
/// <summary>
|
||||
/// Test if the current OS is Windows 8.0
|
||||
/// </summary>
|
||||
/// <returns>true if we are running on Windows 8.0</returns>
|
||||
public static bool IsWindows8 { get; } = WinVersion.Major == 6 && WinVersion.Minor == 2;
|
||||
|
||||
/// <summary>
|
||||
/// Test if the current OS is Windows 8(.1)
|
||||
/// </summary>
|
||||
/// <returns>true if we are running on Windows 8(.1)</returns>
|
||||
public static bool IsWindows81 { get; } = WinVersion.Major == 6 && WinVersion.Minor == 3;
|
||||
|
||||
/// <summary>
|
||||
/// Test if the current OS is Windows 8.0 or 8.1
|
||||
/// </summary>
|
||||
/// <returns>true if we are running on Windows 8.1 or 8.0</returns>
|
||||
public static bool IsWindows8X { get; } = IsWindows8 || IsWindows81;
|
||||
|
||||
/// <summary>
|
||||
/// Test if the current OS is Windows 8.1 or later
|
||||
/// </summary>
|
||||
|
@ -72,36 +39,12 @@ namespace GreenshotPlugin.Core
|
|||
/// <returns>true if we are running on Windows 8 or later</returns>
|
||||
public static bool IsWindows8OrLater { get; } = WinVersion.Major == 6 && WinVersion.Minor >= 2 || WinVersion.Major > 6;
|
||||
|
||||
/// <summary>
|
||||
/// Test if the current OS is Windows Vista
|
||||
/// </summary>
|
||||
/// <returns>true if we are running on Windows Vista or later</returns>
|
||||
public static bool IsWindowsVista { get; } = WinVersion.Major >= 6 && WinVersion.Minor == 0;
|
||||
|
||||
/// <summary>
|
||||
/// Test if the current OS is Windows Vista or later
|
||||
/// </summary>
|
||||
/// <returns>true if we are running on Windows Vista or later</returns>
|
||||
public static bool IsWindowsVistaOrLater { get; } = WinVersion.Major >= 6;
|
||||
|
||||
/// <summary>
|
||||
/// Test if the current OS is from before Windows Vista (e.g. Windows XP)
|
||||
/// </summary>
|
||||
/// <returns>true if we are running on Windows from before Vista</returns>
|
||||
public static bool IsWindowsBeforeVista { get; } = WinVersion.Major < 6;
|
||||
|
||||
/// <summary>
|
||||
/// Test if the current OS is Windows XP
|
||||
/// </summary>
|
||||
/// <returns>true if we are running on Windows XP or later</returns>
|
||||
public static bool IsWindowsXp { get; } = WinVersion.Major == 5 && WinVersion.Minor >= 1;
|
||||
|
||||
/// <summary>
|
||||
/// Test if the current OS is Windows XP or later
|
||||
/// </summary>
|
||||
/// <returns>true if we are running on Windows XP or later</returns>
|
||||
public static bool IsWindowsXpOrLater { get; } = WinVersion.Major >= 5 || WinVersion.Major == 5 && WinVersion.Minor >= 1;
|
||||
|
||||
/// <summary>
|
||||
/// Returns the windows build number
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue