From 8cf466d0a3e835cbcd22bf768684141c9b996278 Mon Sep 17 00:00:00 2001 From: lempamo Date: Mon, 27 Mar 2017 15:39:28 -0400 Subject: added start menu icons --- TimeHACK/Windows95.cs | 120 -------------------------------------------------- 1 file changed, 120 deletions(-) delete mode 100644 TimeHACK/Windows95.cs (limited to 'TimeHACK/Windows95.cs') diff --git a/TimeHACK/Windows95.cs b/TimeHACK/Windows95.cs deleted file mode 100644 index b72b4f7..0000000 --- a/TimeHACK/Windows95.cs +++ /dev/null @@ -1,120 +0,0 @@ -using System; -using System.Drawing; -using System.IO; -using System.Media; -using System.Windows.Forms; -namespace TimeHACK -{ - public partial class Windows95 : Form - { - // Init the form - public Windows95() - { - InitializeComponent(); - } - - // When New Game is clicked in TitleScreen.cs - private void Desktop_Load(object sender, EventArgs e) - { - // Hide the Startmenu - startmenu.Hide(); - - // Check for and set VM Mode - if (this.FormBorderStyle != FormBorderStyle.None) - { - this.Text = "TimeHACK - VM Mode"; - } - - // Start the ClockTimer - clockTimer.Start(); - - // Play Windows 95 Start Sound - Stream audio = Properties.Resources.Win95Start; - SoundPlayer Win95Start = new SoundPlayer(audio); - Win95Start.Play(); - - // Set the StartMenu seperator - startmenuitems.Items.Insert(6, new ToolStripSeparator()); - } - - #region StartMenu - - // Paint StartMenu - private void startmenu_Paint(object sender, PaintEventArgs e) - { - // Paint the StartMenu - ControlPaint.DrawBorder(e.Graphics, startmenu.ClientRectangle, - SystemColors.ControlLightLight, 2, ButtonBorderStyle.Outset, - SystemColors.ControlLightLight, 2, ButtonBorderStyle.Outset, - SystemColors.ControlLightLight, 2, ButtonBorderStyle.Outset, - SystemColors.ControlLightLight, 2, ButtonBorderStyle.Outset); - } - - // StartButton Click - private void startbutton_Click(object sender, EventArgs e) - { - startmenu.Show(); - } - - // Shutdown button - private void ShutdownToolStripMenuItem_Click(object sender, EventArgs e) - { - Application.Exit(); - } - - #endregion //Region - - // When add new folder is clicked - private void FolderToolStripMenuItem_Click(object sender, EventArgs e) - { - desktopicons.Items.Add("New Folder"); - } - - // Give Year Code - NYI - private void taskbartime_Click(object sender, EventArgs e) - { - - } - - // Set the Clock - private void clockTimer_Tick(object sender, EventArgs e) - { - taskbartime.Text = DateTime.Now.ToString("hh:mm tt"); - } - - // On Desktop MouseDown - private void desktop_mousedown(object sender, MouseEventArgs e) - { - if (e.Button == MouseButtons.Right) - { - rightclickbackproperties.Show(); - rightclickbackproperties.BringToFront(); - rightclickbackproperties.Location = MousePosition; - } - - // If - else if (e.Button == MouseButtons.Left) - { - rightclickbackproperties.Hide(); - startmenu.Hide(); - } - - else if (e.Button == MouseButtons.Middle) - { - rightclickbackproperties.Hide(); - } - } - - private void NotePadToolStripMenuItem_Click(object sender, EventArgs e) - { - WinClassicNotepad notepad = new WinClassicNotepad(); - notepad.Show(); - } - - private void desktopicons_SelectedIndexChanged(object sender, EventArgs e) - { - - } - } -} - -- cgit v1.2.3