diff options
| author | Aren <[email protected]> | 2017-03-26 14:05:30 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-03-26 14:05:30 +0200 |
| commit | ee1a2b8e607a413c8990d75ba2ff0e1c8ad78465 (patch) | |
| tree | 4dddc46e0e0675924b799674abeb1a5a82082667 /TimeHACK.Main/Windows95.cs | |
| parent | 503886c38dbef1cb0d888028166fc2878b992aa6 (diff) | |
| parent | f43f1cc9a789c27cf999ec2f62e21c9bfdfeb3c5 (diff) | |
| download | histacom2-ee1a2b8e607a413c8990d75ba2ff0e1c8ad78465.tar.gz histacom2-ee1a2b8e607a413c8990d75ba2ff0e1c8ad78465.tar.bz2 histacom2-ee1a2b8e607a413c8990d75ba2ff0e1c8ad78465.zip | |
Merge pull request #3 from lempamo/master
added shutdown sound to windows 95
Diffstat (limited to 'TimeHACK.Main/Windows95.cs')
| -rw-r--r-- | TimeHACK.Main/Windows95.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/TimeHACK.Main/Windows95.cs b/TimeHACK.Main/Windows95.cs index b72b4f7..5d266ec 100644 --- a/TimeHACK.Main/Windows95.cs +++ b/TimeHACK.Main/Windows95.cs @@ -7,6 +7,9 @@ namespace TimeHACK { public partial class Windows95 : Form { + private SoundPlayer start; + private SoundPlayer stop; + // Init the form public Windows95() { @@ -30,8 +33,8 @@ namespace TimeHACK // Play Windows 95 Start Sound Stream audio = Properties.Resources.Win95Start; - SoundPlayer Win95Start = new SoundPlayer(audio); - Win95Start.Play(); + start = new SoundPlayer(audio); + start.Play(); // Set the StartMenu seperator startmenuitems.Items.Insert(6, new ToolStripSeparator()); @@ -59,6 +62,11 @@ namespace TimeHACK // Shutdown button private void ShutdownToolStripMenuItem_Click(object sender, EventArgs e) { + start.Stop(); + Stream audio = Properties.Resources.tada; + stop = new SoundPlayer(audio); + stop.Play(); + System.Threading.Thread.Sleep(1500); Application.Exit(); } |
