From a9ac640202d70162623d573c5cd01daabbc1193d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Wed, 30 Aug 2023 21:05:54 +0200 Subject: [PATCH 01/11] Added ToLowerAt(s) (#136) --- PeyrSharp.Extensions/StringExtensions.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PeyrSharp.Extensions/StringExtensions.cs b/PeyrSharp.Extensions/StringExtensions.cs index ddf50132..14fbbf8b 100644 --- a/PeyrSharp.Extensions/StringExtensions.cs +++ b/PeyrSharp.Extensions/StringExtensions.cs @@ -184,6 +184,13 @@ public static string DecryptAes(this string encrypted, string key) /// The input string with the first letter uppercased. public static string ToUpperAt(this string s) => string.IsNullOrEmpty(s) ? s : char.ToUpper(s[0]) + s[1..]; + /// + /// Uppercases the first letter of a string. + /// + /// The string to capitalize. + /// The input string with the first letter uppercased. + public static string ToLowerAt(this string s) => string.IsNullOrEmpty(s) ? s : char.ToLower(s[0]) + s[1..]; + /// /// Reverses a . /// From 67a05a3fe5dffc20aa8480e409821f7800f85ba5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Wed, 30 Aug 2023 21:06:09 +0200 Subject: [PATCH 02/11] Added ToLowerAt(str, r) (#136) --- PeyrSharp.Extensions/StringExtensions.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PeyrSharp.Extensions/StringExtensions.cs b/PeyrSharp.Extensions/StringExtensions.cs index 14fbbf8b..445f4a71 100644 --- a/PeyrSharp.Extensions/StringExtensions.cs +++ b/PeyrSharp.Extensions/StringExtensions.cs @@ -184,6 +184,14 @@ public static string DecryptAes(this string encrypted, string key) /// The input string with the first letter uppercased. public static string ToUpperAt(this string s) => string.IsNullOrEmpty(s) ? s : char.ToUpper(s[0]) + s[1..]; + /// + /// Returns a new in which the characters in a specified range of the current are converted to lowercase. + /// + /// The to modify. + /// The range of characters to convert to lowercase. + /// A that is equivalent to the current , but with the characters in the specified range converted to lowercase. + public static string ToLowerAt(this string str, Range r) => str[..r.Start.Value] + str.Substring(r.Start.Value, r.End.Value - r.Start.Value + 1).ToLower() + str[(r.End.Value + 1)..]; + /// /// Uppercases the first letter of a string. /// From d27b667f9ca7f0ad7eaecfa29e07af11fd957fe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Wed, 30 Aug 2023 21:13:03 +0200 Subject: [PATCH 03/11] Added LaunchUWPApp(UwpApp) (#137) --- PeyrSharp.Env/Sys.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/PeyrSharp.Env/Sys.cs b/PeyrSharp.Env/Sys.cs index dc49080b..01423400 100644 --- a/PeyrSharp.Env/Sys.cs +++ b/PeyrSharp.Env/Sys.cs @@ -155,6 +155,16 @@ public static void LaunchUWPApp(string packageFamilyName, string applicationID) Process.Start("explorer.exe", $@"shell:appsFolder\{packageFamilyName}!{applicationID}"); // Synthax to launch UWP apps } + /// + /// Launches an UWP application using information from a object. + /// + /// The UWP application to launch. + public static void LaunchUWPApp(UwpApp uwpApp) + { + string[] info = uwpApp.AppID.Split("!"); + LaunchUWPApp(info[0], info[1]); + } + /// /// Executes a program in administrator mode. /// From 1425859f78c2ba6e7054a50c08c6c471254c440e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Wed, 30 Aug 2023 21:14:56 +0200 Subject: [PATCH 04/11] Added Supported OS attribute (#137) --- PeyrSharp.Env/Sys.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PeyrSharp.Env/Sys.cs b/PeyrSharp.Env/Sys.cs index 01423400..68cf1d14 100644 --- a/PeyrSharp.Env/Sys.cs +++ b/PeyrSharp.Env/Sys.cs @@ -150,6 +150,7 @@ public static bool IsProcessRunning(string processName) /// /// The PackageFamilyName property. /// The Application Id property in the UWP AppxManifest.xml file. + [SupportedOSPlatform("windows")] public static void LaunchUWPApp(string packageFamilyName, string applicationID) { Process.Start("explorer.exe", $@"shell:appsFolder\{packageFamilyName}!{applicationID}"); // Synthax to launch UWP apps @@ -159,6 +160,7 @@ public static void LaunchUWPApp(string packageFamilyName, string applicationID) /// Launches an UWP application using information from a object. /// /// The UWP application to launch. + [SupportedOSPlatform("windows")] public static void LaunchUWPApp(UwpApp uwpApp) { string[] info = uwpApp.AppID.Split("!"); From 56d2846f0d280291f2e283b515fe2ab811891799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Wed, 30 Aug 2023 21:18:27 +0200 Subject: [PATCH 05/11] Added CurrentTheme property (#138) --- PeyrSharp.Env/PeyrSharp.Env.csproj | 1 + PeyrSharp.Env/Sys.cs | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/PeyrSharp.Env/PeyrSharp.Env.csproj b/PeyrSharp.Env/PeyrSharp.Env.csproj index 5d05c66c..a382efa9 100644 --- a/PeyrSharp.Env/PeyrSharp.Env.csproj +++ b/PeyrSharp.Env/PeyrSharp.Env.csproj @@ -31,6 +31,7 @@ + \ No newline at end of file diff --git a/PeyrSharp.Env/Sys.cs b/PeyrSharp.Env/Sys.cs index 68cf1d14..c7ae3cec 100644 --- a/PeyrSharp.Env/Sys.cs +++ b/PeyrSharp.Env/Sys.cs @@ -21,6 +21,7 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +using Microsoft.Win32; using PeyrSharp.Enums; using System; using System.Collections.Generic; @@ -241,6 +242,28 @@ public static void ExecuteAsAdmin(string filename) /// The name of the current computer. public static string ComputerName => Environment.MachineName; + /// + /// Gets the current theme. Only works on Windows 10/11. + /// + [SupportedOSPlatform("windows")] + public static SystemThemes CurrentTheme + { + get + { + if (CurrentWindowsVersion != WindowsVersion.Windows10 && CurrentWindowsVersion != WindowsVersion.Windows11) + { + return SystemThemes.Unknown; // Avoid errors on older OSs + } + var t = Registry.GetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize", "SystemUsesLightTheme", "1"); + return t switch + { + 0 => SystemThemes.Dark, + 1 => SystemThemes.Light, + _ => SystemThemes.Unknown + }; // Return + } + } + /// /// Terminates a process with the specified process ID. /// From c8f10d939296574b88a7880dd97bf35d02c4c8ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Wed, 30 Aug 2023 21:23:51 +0200 Subject: [PATCH 06/11] Added WindowInfo class (#139) --- PeyrSharp.UiHelpers/WindowInfo.cs | 53 +++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 PeyrSharp.UiHelpers/WindowInfo.cs diff --git a/PeyrSharp.UiHelpers/WindowInfo.cs b/PeyrSharp.UiHelpers/WindowInfo.cs new file mode 100644 index 00000000..fcd43a43 --- /dev/null +++ b/PeyrSharp.UiHelpers/WindowInfo.cs @@ -0,0 +1,53 @@ +/* +MIT License + +Copyright (c) Devyus + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PeyrSharp.UiHelpers +{ + /// + /// Represents information about a window. + /// + public class WindowInfo + { + /// + /// Gets or sets the handle of the window. + /// + public IntPtr Handle { get; set; } + + /// + /// Gets or sets the name of the window. + /// + public string Name { get; set; } + + /// + /// Gets or sets the class name of the window. + /// + public string ClassName { get; set; } + } + +} From 05b99eecd85269981dce7c51badfb8b2d37a083f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Wed, 30 Aug 2023 21:24:09 +0200 Subject: [PATCH 07/11] Added the possibility to get a list of opened windows (#139) --- PeyrSharp.UiHelpers/WindowHelpers.cs | 98 ++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 PeyrSharp.UiHelpers/WindowHelpers.cs diff --git a/PeyrSharp.UiHelpers/WindowHelpers.cs b/PeyrSharp.UiHelpers/WindowHelpers.cs new file mode 100644 index 00000000..8ed26252 --- /dev/null +++ b/PeyrSharp.UiHelpers/WindowHelpers.cs @@ -0,0 +1,98 @@ +/* +MIT License + +Copyright (c) Devyus + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.InteropServices; +using System.Text; +using System.Threading.Tasks; + +namespace PeyrSharp.UiHelpers +{ + /// + /// Provides utility methods for working with windows. + /// + public static class WindowHelpers + { + /// + /// Retrieves a list of currently visible windows. + /// + /// A list of objects representing the visible windows. + public static List GetWindows() + { + List windowList = new List(); + EnumWindows((hWnd, lParam) => + { + if (IsWindowVisible(hWnd)) + { + StringBuilder titleBuilder = new StringBuilder(256); + StringBuilder classNameBuilder = new StringBuilder(256); + + GetWindowText(hWnd, titleBuilder, titleBuilder.Capacity); + GetClassName(hWnd, classNameBuilder, classNameBuilder.Capacity); + + string title = titleBuilder.ToString(); + string className = classNameBuilder.ToString(); + + windowList.Add(new WindowInfo + { + Handle = hWnd, + Name = title, + ClassName = className + }); + } + + return true; + }, IntPtr.Zero); + + return windowList; + } + + // ... (rest of the code) + + private static bool IsWindowVisible(IntPtr hWnd) + { + return IsWindowVisibleCore(hWnd) && !IsIconic(hWnd); + } + + [DllImport("user32.dll")] + [return: MarshalAs(UnmanagedType.Bool)] + private static extern bool IsWindowVisibleCore(IntPtr hWnd); + + [DllImport("user32.dll")] + [return: MarshalAs(UnmanagedType.Bool)] + private static extern bool IsIconic(IntPtr hWnd); + + [DllImport("user32.dll")] + [return: MarshalAs(UnmanagedType.Bool)] + private static extern bool EnumWindows(EnumWindowsProc enumProc, IntPtr lParam); + private delegate bool EnumWindowsProc(IntPtr hWnd, IntPtr lParam); + + [DllImport("user32.dll")] + private static extern int GetWindowText(IntPtr hWnd, StringBuilder text, int count); + + [DllImport("user32.dll")] + private static extern int GetClassName(IntPtr hWnd, StringBuilder className, int count); + } +} From 3324074992396375795f9ce74fb048bddc7d5d7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Wed, 30 Aug 2023 21:25:08 +0200 Subject: [PATCH 08/11] Code cleanup --- PeyrSharp.Env/Sys.cs | 1 - PeyrSharp.UiHelpers/WindowHelpers.cs | 8 +++----- PeyrSharp.UiHelpers/WindowInfo.cs | 4 ---- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/PeyrSharp.Env/Sys.cs b/PeyrSharp.Env/Sys.cs index c7ae3cec..18ea05b1 100644 --- a/PeyrSharp.Env/Sys.cs +++ b/PeyrSharp.Env/Sys.cs @@ -33,7 +33,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE using System.Runtime.Versioning; using System.Text.Json; using System.Threading.Tasks; -using static System.Net.Mime.MediaTypeNames; namespace PeyrSharp.Env { diff --git a/PeyrSharp.UiHelpers/WindowHelpers.cs b/PeyrSharp.UiHelpers/WindowHelpers.cs index 8ed26252..0dd39e9b 100644 --- a/PeyrSharp.UiHelpers/WindowHelpers.cs +++ b/PeyrSharp.UiHelpers/WindowHelpers.cs @@ -23,10 +23,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE */ using System; using System.Collections.Generic; -using System.Linq; using System.Runtime.InteropServices; using System.Text; -using System.Threading.Tasks; namespace PeyrSharp.UiHelpers { @@ -41,13 +39,13 @@ public static class WindowHelpers /// A list of objects representing the visible windows. public static List GetWindows() { - List windowList = new List(); + List windowList = new(); EnumWindows((hWnd, lParam) => { if (IsWindowVisible(hWnd)) { - StringBuilder titleBuilder = new StringBuilder(256); - StringBuilder classNameBuilder = new StringBuilder(256); + StringBuilder titleBuilder = new(256); + StringBuilder classNameBuilder = new(256); GetWindowText(hWnd, titleBuilder, titleBuilder.Capacity); GetClassName(hWnd, classNameBuilder, classNameBuilder.Capacity); diff --git a/PeyrSharp.UiHelpers/WindowInfo.cs b/PeyrSharp.UiHelpers/WindowInfo.cs index fcd43a43..fc50c664 100644 --- a/PeyrSharp.UiHelpers/WindowInfo.cs +++ b/PeyrSharp.UiHelpers/WindowInfo.cs @@ -22,10 +22,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace PeyrSharp.UiHelpers { From 6f4f1a8d93b50d98910f811b21f7341d32457276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Thu, 31 Aug 2023 10:08:05 +0200 Subject: [PATCH 09/11] Removed useless comment --- PeyrSharp.UiHelpers/WindowHelpers.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/PeyrSharp.UiHelpers/WindowHelpers.cs b/PeyrSharp.UiHelpers/WindowHelpers.cs index 0dd39e9b..d5adc2bc 100644 --- a/PeyrSharp.UiHelpers/WindowHelpers.cs +++ b/PeyrSharp.UiHelpers/WindowHelpers.cs @@ -67,8 +67,6 @@ public static List GetWindows() return windowList; } - // ... (rest of the code) - private static bool IsWindowVisible(IntPtr hWnd) { return IsWindowVisibleCore(hWnd) && !IsIconic(hWnd); From 18cb19e93935d3e3b05505ed587be80897f65d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Thu, 31 Aug 2023 10:42:22 +0200 Subject: [PATCH 10/11] Fixed typo in XML doc --- PeyrSharp.Extensions/StringExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PeyrSharp.Extensions/StringExtensions.cs b/PeyrSharp.Extensions/StringExtensions.cs index 445f4a71..586500e9 100644 --- a/PeyrSharp.Extensions/StringExtensions.cs +++ b/PeyrSharp.Extensions/StringExtensions.cs @@ -196,7 +196,7 @@ public static string DecryptAes(this string encrypted, string key) /// Uppercases the first letter of a string. /// /// The string to capitalize. - /// The input string with the first letter uppercased. + /// The input string with the first letter lowercased. public static string ToLowerAt(this string s) => string.IsNullOrEmpty(s) ? s : char.ToLower(s[0]) + s[1..]; /// From ee273297aeac1b8c531eefdad77d9270c9d951f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Thu, 31 Aug 2023 11:03:09 +0200 Subject: [PATCH 11/11] Version 1.9.0.2309 --- PeyrSharp.Core/PeyrSharp.Core.csproj | 11 ++++----- PeyrSharp.Enums/PeyrSharp.Enums.csproj | 2 +- PeyrSharp.Env/PeyrSharp.Env.csproj | 7 +++--- .../PeyrSharp.Exceptions.csproj | 2 +- .../PeyrSharp.Extensions.csproj | 7 +++--- .../PeyrSharp.UiHelpers.csproj | 7 +++--- PeyrSharp/PeyrSharp.cs | 2 +- PeyrSharp/PeyrSharp.csproj | 24 ++++++++++--------- 8 files changed, 32 insertions(+), 30 deletions(-) diff --git a/PeyrSharp.Core/PeyrSharp.Core.csproj b/PeyrSharp.Core/PeyrSharp.Core.csproj index 5950f56a..4a27ea57 100644 --- a/PeyrSharp.Core/PeyrSharp.Core.csproj +++ b/PeyrSharp.Core/PeyrSharp.Core.csproj @@ -4,7 +4,7 @@ net5.0;net6.0;net7.0 True PeyrSharp.Core - 1.8.0.2308 + 1.9.0.2309 Devyus Core methods and features of PeyrSharp. © 2023 @@ -16,10 +16,7 @@ NUGET_README.md MIT True - - Added Save() method in XmlHelper (#126) -- Added Load() method in XmlHelper (#127) -- Added Save() method in JsonHelper (#128) -- Added Load() method in JsonHelper (#129) + @@ -34,8 +31,8 @@ - - + + \ No newline at end of file diff --git a/PeyrSharp.Enums/PeyrSharp.Enums.csproj b/PeyrSharp.Enums/PeyrSharp.Enums.csproj index f338582c..19529413 100644 --- a/PeyrSharp.Enums/PeyrSharp.Enums.csproj +++ b/PeyrSharp.Enums/PeyrSharp.Enums.csproj @@ -11,7 +11,7 @@ https://peyrsharp.leocorporation.dev/ https://github.com/DevyusCode/PeyrSharp enums;c-sharp;dotnet;vb;peyrsharp;leo corp - 1.8.0.2308 + 1.9.0.2309 True logo.png NUGET_README.md diff --git a/PeyrSharp.Env/PeyrSharp.Env.csproj b/PeyrSharp.Env/PeyrSharp.Env.csproj index a382efa9..34f3dfd7 100644 --- a/PeyrSharp.Env/PeyrSharp.Env.csproj +++ b/PeyrSharp.Env/PeyrSharp.Env.csproj @@ -4,7 +4,7 @@ net5.0;net6.0;net7.0 True PeyrSharp.Env - 1.8.0.2308 + 1.9.0.2309 Devyus Environment-related methods of PeyrSharp. © 2023 @@ -16,7 +16,8 @@ NUGET_README.md MIT True - + - Added Supported OS attribute (#137) +- Added CurrentTheme property (#138) @@ -32,6 +33,6 @@ - + \ No newline at end of file diff --git a/PeyrSharp.Exceptions/PeyrSharp.Exceptions.csproj b/PeyrSharp.Exceptions/PeyrSharp.Exceptions.csproj index 5885b1ee..13a2915f 100644 --- a/PeyrSharp.Exceptions/PeyrSharp.Exceptions.csproj +++ b/PeyrSharp.Exceptions/PeyrSharp.Exceptions.csproj @@ -6,7 +6,7 @@ enable True PeyrSharp.Exceptions - 1.8.0.2308 + 1.9.0.2309 Devyus Exceptions of PeyrSharp. © 2023 diff --git a/PeyrSharp.Extensions/PeyrSharp.Extensions.csproj b/PeyrSharp.Extensions/PeyrSharp.Extensions.csproj index e432aee4..8e806222 100644 --- a/PeyrSharp.Extensions/PeyrSharp.Extensions.csproj +++ b/PeyrSharp.Extensions/PeyrSharp.Extensions.csproj @@ -4,7 +4,7 @@ net5.0;net6.0;net7.0 True PeyrSharp.Extensions - 1.8.0.2308 + 1.9.0.2309 Devyus Extensions methods of PeyrSharp. © 2023 @@ -16,7 +16,8 @@ NUGET_README.md MIT True - + - Added ToLowerAt(s) (#136) +- Added ToLowerAt(str, r) (#136) @@ -31,7 +32,7 @@ - + \ No newline at end of file diff --git a/PeyrSharp.UiHelpers/PeyrSharp.UiHelpers.csproj b/PeyrSharp.UiHelpers/PeyrSharp.UiHelpers.csproj index 51a5d486..95c91b79 100644 --- a/PeyrSharp.UiHelpers/PeyrSharp.UiHelpers.csproj +++ b/PeyrSharp.UiHelpers/PeyrSharp.UiHelpers.csproj @@ -8,7 +8,7 @@ true True PeyrSharp.UiHelpers - 1.8.0.2308 + 1.9.0.2309 Devyus Useful helpers for Windows Forms and Windows Presentation Framework. © 2023 @@ -20,7 +20,8 @@ NUGET_README.md MIT True - + - Added WindowInfo class (#139) +- Added the possibility to get a list of opened windows (#139) @@ -35,7 +36,7 @@ - + \ No newline at end of file diff --git a/PeyrSharp/PeyrSharp.cs b/PeyrSharp/PeyrSharp.cs index 77fef707..12b81d11 100644 --- a/PeyrSharp/PeyrSharp.cs +++ b/PeyrSharp/PeyrSharp.cs @@ -32,6 +32,6 @@ public static class PeyrSharp /// /// The current version of PeyrSharp. /// - public static string Version => "1.8.0.2308"; + public static string Version => "1.9.0.2309"; } } diff --git a/PeyrSharp/PeyrSharp.csproj b/PeyrSharp/PeyrSharp.csproj index 2f65e1fd..8737dc7d 100644 --- a/PeyrSharp/PeyrSharp.csproj +++ b/PeyrSharp/PeyrSharp.csproj @@ -4,7 +4,7 @@ net5.0;net6.0;net5.0-windows;net6.0-windows;net7.0;net7.0-windows True PeyrSharp - 1.8.0.2308 + 1.9.0.2309 Devyus © 2023 A C# library designed to make developers' job easier. @@ -17,10 +17,12 @@ NUGET_README.md MIT True - - Added Save() method in XmlHelper (#126) -- Added Load() method in XmlHelper (#127) -- Added Save() method in JsonHelper (#128) -- Added Load() method in JsonHelper (#129) + - Added ToLowerAt(s) (#136) +- Added ToLowerAt(str, r) (#136) +- Added LaunchUWPApp(UwpApp) (#137) +- Added CurrentTheme property (#138) +- Added WindowInfo class (#139) +- Added the possibility to get a list of opened windows (#139) @@ -35,12 +37,12 @@ - - - - - - + + + + + + \ No newline at end of file