aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Engine/Tools.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-11-18 16:29:54 +0000
committerAlex-TIMEHACK <[email protected]>2017-11-18 16:29:54 +0000
commit4037be53b29a122732cfc10693e9c0027f606bb0 (patch)
tree8533ea9ee0ac8f5f7f696b85cb039f783657ada0 /ShiftOS.Engine/Tools.cs
parent65b7ac2b8cbc4478f6d31a21f106048aeb075078 (diff)
parent97722fbe9d474adffbba0b92e9727c48a8205234 (diff)
downloadshiftos-rewind-4037be53b29a122732cfc10693e9c0027f606bb0.tar.gz
shiftos-rewind-4037be53b29a122732cfc10693e9c0027f606bb0.tar.bz2
shiftos-rewind-4037be53b29a122732cfc10693e9c0027f606bb0.zip
Updated my fork!
Conflicts: ShiftOS.Engine/ShiftOS.Engine.csproj ShiftOS.Engine/Terminal/Commands/Hello.cs ShiftOS.Engine/Terminal/TerminalBackend.cs ShiftOS.Engine/Terminal/TerminalCommand.cs ShiftOS.Main/ShiftOS.Main.csproj ShiftOS.Main/ShiftOS/Apps/Terminal.cs ShiftOS.Main/ShiftOS/Desktop.cs
Diffstat (limited to 'ShiftOS.Engine/Tools.cs')
-rw-r--r--ShiftOS.Engine/Tools.cs31
1 files changed, 0 insertions, 31 deletions
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
-{
- /// <summary>
- /// Random class full of unassorted [but also uncategorizable] tools.
- /// </summary>
- 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;
- }
- }
-}