diff options
| author | Alex-TIMEHACK <[email protected]> | 2017-05-01 11:26:56 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-05-01 11:26:56 +0100 |
| commit | 14709f42bc47f5d3026ea7bc36677780562a9180 (patch) | |
| tree | 9b40038952625a63c010b8bce7b2bf6a620209e4 /TimeHACK.Main/OS/Win95/Win95.cs | |
| parent | 33373a873ffb0717cb153b5613514fe4478a0ec1 (diff) | |
| parent | 234eacb36db0413b886c65c9dbd701d78836ee10 (diff) | |
| download | histacom2-14709f42bc47f5d3026ea7bc36677780562a9180.tar.gz histacom2-14709f42bc47f5d3026ea7bc36677780562a9180.tar.bz2 histacom2-14709f42bc47f5d3026ea7bc36677780562a9180.zip | |
Merge pull request #59 from Alex-TIMEHACK/master
Minor tweaks to the game!
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95.cs | 11 |
1 files changed, 9 insertions, 2 deletions
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(); } |
