aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95.cs
diff options
context:
space:
mode:
authorjtsshieh <[email protected]>2017-07-12 12:32:35 -0400
committerjtsshieh <[email protected]>2017-07-12 12:32:35 -0400
commit49f0c7a892895f0cfd9a96b0631b510a1794e2d2 (patch)
treefe3dd721e02771262d91ca90d7a3c3923f71ac0c /TimeHACK.Main/OS/Win95/Win95.cs
parentdecf04e16d1a42acadf7330b810a955a223d2afc (diff)
downloadhistacom2-49f0c7a892895f0cfd9a96b0631b510a1794e2d2.tar.gz
histacom2-49f0c7a892895f0cfd9a96b0631b510a1794e2d2.tar.bz2
histacom2-49f0c7a892895f0cfd9a96b0631b510a1794e2d2.zip
Basic Kinda working calc
The title
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs
index e08d436..7efe5e9 100644
--- a/TimeHACK.Main/OS/Win95/Win95.cs
+++ b/TimeHACK.Main/OS/Win95/Win95.cs
@@ -450,6 +450,19 @@ namespace TimeHACK.OS.Win95
app.BringToFront();
startmenu.Hide();
}
+
+ private void CalculatorToolStripMenuItem_Click(object sender, EventArgs e)
+ {
+ WinClassic app = wm.StartWin95(new WinClassicCalculator(), "Calculator", Properties.Resources.WinClassicCalc, 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
{