diff options
| author | lempamo <[email protected]> | 2017-07-26 19:59:45 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-07-26 19:59:45 -0500 |
| commit | bd7604e6a8c13e9cee05614e64b8eadd68b1c8c9 (patch) | |
| tree | 0437a338ff22d6458b0d87c8f323751eb36fb3f3 /TimeHACK.Main/OS/Win95/Win95.cs | |
| parent | a852b2c7f2bb372a89e78e805298c33c00ebe924 (diff) | |
| parent | cc5a8d36ceac1567eebe946c3c6cbd0813a854c1 (diff) | |
| download | histacom2-bd7604e6a8c13e9cee05614e64b8eadd68b1c8c9.tar.gz histacom2-bd7604e6a8c13e9cee05614e64b8eadd68b1c8c9.tar.bz2 histacom2-bd7604e6a8c13e9cee05614e64b8eadd68b1c8c9.zip | |
Merge pull request #138 from jtsshieh/master
VERY VERY VERY BASIC Minesweeper
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95.cs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs index 3649982..caef618 100644 --- a/TimeHACK.Main/OS/Win95/Win95.cs +++ b/TimeHACK.Main/OS/Win95/Win95.cs @@ -38,7 +38,7 @@ namespace TimeHACK.OS.Win95 AccessoriesToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); CommunicationsToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); MultimediaToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); - SystemToolsToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); + GamesToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); StartUpToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); MSDOSPromptToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); DocumentsToolStripMenuItem.DropDown.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2); @@ -571,6 +571,19 @@ namespace TimeHACK.OS.Win95 } } } + + private void MinsweeperToolStripMenuItem_Click(object sender, EventArgs e) + { + WinClassic app = wm.StartWin95(new WinClassicMinesweeper(), "Minesweeper", Properties.Resources.minsweeper_logo, false, false); + AddTaskBarItem(app, app.Tag.ToString(), "Calculator", Properties.Resources.WinClassicCalc); + + nonimportantapps.Add(app); + nonimportantapps[nonimportantapps.Count - 1].BringToFront(); + nonimportantapps[nonimportantapps.Count - 1].FormClosing += new FormClosingEventHandler(NonImportantApp_Closing); + + app.BringToFront(); + startmenu.Hide(); + } } public class MyRenderer : ToolStripProfessionalRenderer { |
