aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-06-17 22:27:23 +0100
committerGitHub <[email protected]>2017-06-17 22:27:23 +0100
commit15f2e1a7e3ec5d85aee4a126144722feeff4682f (patch)
tree552cfd401bdcacd216a82c8e61864ba32dd2708a /TimeHACK.Main/OS/Win95/Win95.cs
parent331ac7f0aa424a49ff0f55fb87711a71384eb709 (diff)
parent2f9031e0ace7ddadec9c441551ccfecf80b6df28 (diff)
downloadhistacom2-15f2e1a7e3ec5d85aee4a126144722feeff4682f.tar.gz
histacom2-15f2e1a7e3ec5d85aee4a126144722feeff4682f.tar.bz2
histacom2-15f2e1a7e3ec5d85aee4a126144722feeff4682f.zip
Merge pull request #97 from Alex-TIMEHACK/master
A LOT of Tweaks - more to come
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95.cs17
1 files changed, 9 insertions, 8 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95.cs b/TimeHACK.Main/OS/Win95/Win95.cs
index 8b272ec..bd706cb 100644
--- a/TimeHACK.Main/OS/Win95/Win95.cs
+++ b/TimeHACK.Main/OS/Win95/Win95.cs
@@ -109,12 +109,7 @@ namespace TimeHACK.OS.Win95
// Shutdown button
private void ShutdownToolStripMenuItem_Click(object sender, EventArgs e)
{
- startsound.Stop();
- Stream audio = Properties.Resources.tada;
- stopsound = new SoundPlayer(audio);
- stopsound.Play();
- System.Threading.Thread.Sleep(1500);
- Application.Exit();
+ Program.ShutdownApplication(Properties.Resources.tada);
}
#endregion //Region
@@ -343,12 +338,18 @@ namespace TimeHACK.OS.Win95
private void storyTest1ToolStripMenuItem_Click(object sender, EventArgs e)
{
- Win95Apps.Story.Hack1 story = new Win95Apps.Story.Hack1();
- story.startObjective();
+ Hack1.startObjective();
}
private void temp_for_std(object sender, EventArgs e)
{
+ System.Threading.Thread thread = new System.Threading.Thread(StartSurviveTheDay);
+
+ thread.Start();
+ }
+
+ void StartSurviveTheDay()
+ {
Win2K.Win2KApps.SurviveTheDay std = new Win2K.Win2KApps.SurviveTheDay();
WinClassic app = wm.startWin95(std, "Survive The Day", null, false, false);
AddTaskBarItem(app, app.Tag.ToString(), "Survive The Day", null);