From 234eacb36db0413b886c65c9dbd701d78836ee10 Mon Sep 17 00:00:00 2001 From: Alex-TIMEHACK Date: Mon, 1 May 2017 11:25:23 +0100 Subject: Small adjustments --- TimeHACK.Main/OS/Win95/Win95.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'TimeHACK.Main/OS/Win95/Win95.cs') diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs index 1e68101..2cb9880 100644 --- a/TimeHACK.Main/OS/Win95/Win95.cs +++ b/TimeHACK.Main/OS/Win95/Win95.cs @@ -62,9 +62,11 @@ namespace TimeHACK.OS.Win95 //nonimportantapps.Capacity = 100; this.SendToBack(); - // THIS IS TESTING STUFF HERE: - taskbarItems = tb.AddTaskbarItem95("0", "Test app", Properties.Resources.Win95IconWordpad, (UserControl)new Win95TaskBarItem(), taskbarItems); + // Update the taskbar UpdateTaskbar(); + + // Bring to this the front + this.BringToFront(); } private void fontLoad() @@ -273,6 +275,11 @@ namespace TimeHACK.OS.Win95 WinClassicWordPad wp = new WinClassicWordPad(); WinClassic app = wm.startWin95(wp, "Wordpad", Properties.Resources.Win95IconWordpad, true, true); AddTaskBarItem(app, app.Tag.ToString(), "Wordpad", Properties.Resources.Win95IconWordpad); + + nonimportantapps.Add(app); + nonimportantapps[nonimportantapps.Count - 1].BringToFront(); + nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing); + app.BringToFront(); startmenu.Hide(); } -- cgit v1.2.3