diff options
| author | lempamo <[email protected]> | 2017-03-26 22:03:44 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-03-26 22:03:44 -0400 |
| commit | a6481fcae6225d59074bde6ecf6d329ee0cf9f93 (patch) | |
| tree | f2bdb45328d8fdf7263975e06dd705b6f3d33601 /TimeHACK.Main/Windows95.cs | |
| parent | 83f1652ca5bd6c1fdfbebb70c41fef2e31d17b7d (diff) | |
| download | histacom2-a6481fcae6225d59074bde6ecf6d329ee0cf9f93.tar.gz histacom2-a6481fcae6225d59074bde6ecf6d329ee0cf9f93.tar.bz2 histacom2-a6481fcae6225d59074bde6ecf6d329ee0cf9f93.zip | |
brought my changes back and fixed a few extra things
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(); + } + } + } + } } } |
