diff options
| author | JayXKanz666 <[email protected]> | 2017-03-29 02:34:05 +0200 |
|---|---|---|
| committer | JayXKanz666 <[email protected]> | 2017-03-29 02:34:05 +0200 |
| commit | 20361308e38fe8c48aa10afe3d41b75e559165fc (patch) | |
| tree | f2bdb45328d8fdf7263975e06dd705b6f3d33601 /TimeHACK.Main/Windows95.cs | |
| parent | a357d77aa7a2a35f414daa0a7737003bf2660477 (diff) | |
| parent | b4025b4c6d675b1b86074fe9b4de89dc00ee9123 (diff) | |
| download | histacom2-20361308e38fe8c48aa10afe3d41b75e559165fc.tar.gz histacom2-20361308e38fe8c48aa10afe3d41b75e559165fc.tar.bz2 histacom2-20361308e38fe8c48aa10afe3d41b75e559165fc.zip | |
Merge remote-tracking branch 'refs/remotes/TimeHACKDevs/master'
Diffstat (limited to 'TimeHACK.Main/Windows95.cs')
| -rw-r--r-- | TimeHACK.Main/Windows95.cs | 43 |
1 files changed, 40 insertions, 3 deletions
diff --git a/TimeHACK.Main/Windows95.cs b/TimeHACK.Main/Windows95.cs index 93cf7e0..bfae46b 100644 --- a/TimeHACK.Main/Windows95.cs +++ b/TimeHACK.Main/Windows95.cs @@ -10,6 +10,9 @@ namespace TimeHACK { public partial class Windows95 : Form { + private SoundPlayer startsound; + private SoundPlayer stopsound; + // Init the form public Windows95() { @@ -33,8 +36,8 @@ namespace TimeHACK // Play Windows 95 Start Sound Stream audio = Properties.Resources.Win95Start; - SoundPlayer Win95Start = new SoundPlayer(audio); - Win95Start.Play(); + startsound = new SoundPlayer(audio); + startsound.Play(); // Set the StartMenu seperator startmenuitems.Items.Insert(6, new ToolStripSeparator()); @@ -62,6 +65,11 @@ namespace TimeHACK // 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(); } @@ -82,7 +90,7 @@ namespace TimeHACK // Set the Clock private void clockTimer_Tick(object sender, EventArgs e) { - taskbartime.Text = DateTime.Now.ToString("hh:mm tt"); + taskbartime.Text = DateTime.Now.ToString("h:mm tt"); } // On Desktop MouseDown @@ -133,6 +141,35 @@ namespace TimeHACK WindowManager wm = new WindowManager(); wm.startWinClassic(openinstaller, "Installer", null, false, true); } + + private void InternetExplorerToolStripMenuItem_Click(object sender, EventArgs e) + { + WinClassicIE4 ie = new WinClassicIE4(); + ie.Show(); + ie.BringToFront(); + startmenu.Hide(); + } + + private void desktopicons_Click(object sender, EventArgs e) + { + Point objDrawingPoint = desktopicons.PointToClient(Cursor.Position); + ListViewItem objListViewItem; + + if (objDrawingPoint != null) + { + objListViewItem = desktopicons.GetItemAt(objDrawingPoint.X, objDrawingPoint.Y); + if (objListViewItem != null) + { + if (objListViewItem.Text == "Internet Explorer") + { + WinClassicIE4 ie = new WinClassicIE4(); + WindowManager wm = new WindowManager(); + wm.startWinClassic(ie, "Internet Explorer 4", null, true, true); + startmenu.Hide(); + } + } + } + } } } |
