diff options
| author | AShifter <[email protected]> | 2017-03-26 11:28:05 -0600 |
|---|---|---|
| committer | AShifter <[email protected]> | 2017-03-26 11:28:24 -0600 |
| commit | f16f3a8a3df33f46c4ec6c864447cced97c0f034 (patch) | |
| tree | 6c06d045bd7afa16c89b63c01c41b2ace019ff8b /TimeHACK.Main/Windows95.cs | |
| parent | a7128e18c33b39b6253f9af3022fb1a47b1ac5f1 (diff) | |
| download | histacom2-f16f3a8a3df33f46c4ec6c864447cced97c0f034.tar.gz histacom2-f16f3a8a3df33f46c4ec6c864447cced97c0f034.tar.bz2 histacom2-f16f3a8a3df33f46c4ec6c864447cced97c0f034.zip | |
Finished WindowManager.cs
I HOPE YOU LIKE IT HONEYFRY
Diffstat (limited to 'TimeHACK.Main/Windows95.cs')
| -rw-r--r-- | TimeHACK.Main/Windows95.cs | 62 |
1 files changed, 11 insertions, 51 deletions
diff --git a/TimeHACK.Main/Windows95.cs b/TimeHACK.Main/Windows95.cs index d262985..94c42aa 100644 --- a/TimeHACK.Main/Windows95.cs +++ b/TimeHACK.Main/Windows95.cs @@ -3,13 +3,13 @@ using System.Drawing; using System.IO; using System.Media; using System.Windows.Forms; +using TimeHACK.Engine; +using TimeHACK.WinClassicForms; + namespace TimeHACK { public partial class Windows95 : Form { - private SoundPlayer start; - private SoundPlayer stop; - // Init the form public Windows95() { @@ -33,13 +33,11 @@ namespace TimeHACK // Play Windows 95 Start Sound Stream audio = Properties.Resources.Win95Start; - start = new SoundPlayer(audio); - start.Play(); + SoundPlayer Win95Start = new SoundPlayer(audio); + Win95Start.Play(); // Set the StartMenu seperator startmenuitems.Items.Insert(6, new ToolStripSeparator()); - - this.SendToBack(); } #region StartMenu @@ -59,17 +57,11 @@ namespace TimeHACK private void startbutton_Click(object sender, EventArgs e) { startmenu.Show(); - startmenu.BringToFront(); } // 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(); } @@ -90,7 +82,7 @@ namespace TimeHACK // Set the Clock private void clockTimer_Tick(object sender, EventArgs e) { - taskbartime.Text = DateTime.Now.ToString("h:mm tt"); + taskbartime.Text = DateTime.Now.ToString("hh:mm tt"); } // On Desktop MouseDown @@ -101,7 +93,6 @@ namespace TimeHACK rightclickbackproperties.Show(); rightclickbackproperties.BringToFront(); rightclickbackproperties.Location = MousePosition; - startmenu.Hide(); } // If @@ -119,44 +110,13 @@ namespace TimeHACK private void NotePadToolStripMenuItem_Click(object sender, EventArgs e) { - WinClassicNotepad notepad = new WinClassicNotepad(); - notepad.Show(); - notepad.BringToFront(); - startmenu.Hide(); - } - - private void desktopicons_SelectedIndexChanged(object sender, EventArgs e) - { - - } - - 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) + private void windowManagerTestToolStripMenuItem_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(); - ie.Show(); - ie.BringToFront(); - startmenu.Hide(); - } - } - } + WindowManager wm = new WindowManager(); + TestApp test = new TestApp(); + wm.startWinClassic(test, "TestApp", null, true, true); } } } |
