aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/Windows95.cs
diff options
context:
space:
mode:
authorAShifter <[email protected]>2017-03-18 17:19:13 -0600
committerGitHub <[email protected]>2017-03-18 17:19:13 -0600
commitcfc3cde2a0bae77ddabc12e80aea2461d5ae1514 (patch)
treebe4d185709c92b2b58956762791dcdc6bc3540cf /TimeHACK.Main/Windows95.cs
parent2ef1e277a54e698f0d96cc87ab5523c2471d0ef4 (diff)
parente3dea4fcfb2c04688e4b734260621dc61df5fc34 (diff)
downloadhistacom2-cfc3cde2a0bae77ddabc12e80aea2461d5ae1514.tar.gz
histacom2-cfc3cde2a0bae77ddabc12e80aea2461d5ae1514.tar.bz2
histacom2-cfc3cde2a0bae77ddabc12e80aea2461d5ae1514.zip
Merge pull request #1 from AShifter/master
I shouldn't make a pull request but okay
Diffstat (limited to 'TimeHACK.Main/Windows95.cs')
-rw-r--r--TimeHACK.Main/Windows95.cs120
1 files changed, 120 insertions, 0 deletions
diff --git a/TimeHACK.Main/Windows95.cs b/TimeHACK.Main/Windows95.cs
new file mode 100644
index 0000000..b72b4f7
--- /dev/null
+++ b/TimeHACK.Main/Windows95.cs
@@ -0,0 +1,120 @@
+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)
+ {
+
+ }
+ }
+}
+