aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'TimeHACK.Main/Program.cs')
-rw-r--r--TimeHACK.Main/Program.cs16
1 files changed, 15 insertions, 1 deletions
diff --git a/TimeHACK.Main/Program.cs b/TimeHACK.Main/Program.cs
index ea1936f..5cc011a 100644
--- a/TimeHACK.Main/Program.cs
+++ b/TimeHACK.Main/Program.cs
@@ -12,6 +12,7 @@ using TimeHACK.OS.Win95;
using TimeHACK.OS.Win95.Win95Apps;
using TimeHACK.Engine;
using TimeHACK.Engine.Template;
+using System.Drawing;
namespace TimeHACK
{
@@ -27,6 +28,9 @@ namespace TimeHACK
public static string WindowsExplorerReturnPath;
static WindowManager wm = new WindowManager();
+ public static List<WinClassic> nonimportantapps = new List<WinClassic>();
+ public static int currentappcount = 0;
+
/// <summary>
/// The main entry point for the application.
/// Run TitleScreen.cs at launch.
@@ -69,7 +73,7 @@ namespace TimeHACK
{
WinClassicWindowsExplorer we = new WinClassicWindowsExplorer();
- WinClassic app = wm.startWin95(we, "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true, true);
+ WinClassic app = wm.StartWin95(we, "Windows Explorer", Properties.Resources.WinClassicFileExplorer, true, true, true);
try
{
return WindowsExplorerReturnPath;
@@ -114,5 +118,15 @@ namespace TimeHACK
}
}
+
+ public static void AddTaskbarItem(Form Application, string ApplicationID, string ApplicationName, Image ApplicationIcon)
+ {
+ TitleScreen.frm95.AddTaskBarItem(Application, ApplicationID, ApplicationName, ApplicationIcon);
+ }
+
+ public static void NonImportantApp_Closing(object sender, FormClosingEventArgs e)
+ {
+ Program.nonimportantapps.Remove((WinClassic)sender);
+ }
}
}