Pilz.UI: convert to C#

This commit is contained in:
2024-06-10 12:29:56 +02:00
parent b9be604f0d
commit 5c6f0c8bfc
32 changed files with 3950 additions and 166 deletions

13
Pilz.UI/Extensions.cs Normal file
View File

@@ -0,0 +1,13 @@
using System.Drawing;
namespace Pilz.UI;
public static class Extensions
{
public static Image? ToIcon(this Image image)
{
if (image is Bitmap bmp)
return Icon.FromHandle(bmp.GetHicon());
return null;
}
}