From a10440a45c40652b13e883aec832a0c8ded685e8 Mon Sep 17 00:00:00 2001 From: John T Date: Sun, 5 Nov 2017 18:47:46 -0500 Subject: Added a half-complete ShiftFS and did some code cleanup --- ShiftOS.Engine/Tools.cs | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 ShiftOS.Engine/Tools.cs (limited to 'ShiftOS.Engine/Tools.cs') diff --git a/ShiftOS.Engine/Tools.cs b/ShiftOS.Engine/Tools.cs deleted file mode 100644 index 792ccef..0000000 --- a/ShiftOS.Engine/Tools.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Drawing; -using System.Drawing.Imaging; -using System.IO; -using System.Runtime.InteropServices; - -namespace ShiftOS.Engine -{ - /// - /// Random class full of unassorted [but also uncategorizable] tools. - /// - public static class Tools - { - public static Random Rnd = new Random(); - - [DllImport("user32.dll", CharSet = CharSet.Auto)] - public extern static bool DestroyIcon(IntPtr handle); - - public static Icon ToIcon(this Bitmap bm) - { - Icon tempicon = Icon.FromHandle(bm.GetHicon()); - - Icon newIcon = tempicon.Clone() as Icon; - - //for some reason this exists - DestroyIcon(tempicon.Handle); - - return newIcon; - } - } -} -- cgit v1.2.3