aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE3.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-08-23 13:38:40 -0400
committerlempamo <[email protected]>2017-08-23 13:38:40 -0400
commit3306d36ecbc024775972e5cf7971b2a7a70671d0 (patch)
tree0a79e67b6723a8c75ffd66c7828bdd0ebb1bf74d /TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE3.cs
parent99fef5c57360f07259fc86f433bed8a9ab59c48e (diff)
downloadhistacom2-3306d36ecbc024775972e5cf7971b2a7a70671d0.tar.gz
histacom2-3306d36ecbc024775972e5cf7971b2a7a70671d0.tar.bz2
histacom2-3306d36ecbc024775972e5cf7971b2a7a70671d0.zip
Renaming the game!
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE3.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE3.cs90
1 files changed, 0 insertions, 90 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE3.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE3.cs
deleted file mode 100644
index b5367d1..0000000
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE3.cs
+++ /dev/null
@@ -1,90 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Drawing;
-using System.Data;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-using TimeHACK.OS.Win95.Win95Apps.IE4Sites;
-
-namespace TimeHACK.OS.Win95.Win95Apps
-{
- public partial class WinClassicIE3 : UserControl
- {
- public static Panel browsingArea = new Panel();
- public static ComboBox addressbar = new ComboBox();
-
- public WinClassicIE3()
- {
- InitializeComponent();
- browsingArea = _browsingArea;
- addressbar = _addressbar;
-
- BackButton.MouseEnter += (s, e) => BackButton.BackgroundImage = Properties.Resources.IE3_BackHover;
- BackButton.MouseLeave += (s, e) => BackButton.BackgroundImage = Properties.Resources.IE3_Back;
- ForwardButton.MouseEnter += (s, e) => ForwardButton.BackgroundImage = Properties.Resources.IE3_ForwardHover;
- ForwardButton.MouseLeave += (s, e) => ForwardButton.BackgroundImage = Properties.Resources.IE3_Forward;
- StopButton.MouseEnter += (s, e) => StopButton.BackgroundImage = Properties.Resources.IE3_StopHover;
- StopButton.MouseLeave += (s, e) => StopButton.BackgroundImage = Properties.Resources.IE3_Stop;
- RefreshButton.MouseEnter += (s, e) => RefreshButton.BackgroundImage = Properties.Resources.IE3_RefreshHover;
- RefreshButton.MouseLeave += (s, e) => RefreshButton.BackgroundImage = Properties.Resources.IE3_Refresh;
- }
-
- public static async void GoToPage(string url)
- {
- UserControl uc = new UserControl();
-
- switch (url)
- {
- case "www.microsoft.com/windows/ie/default.htm":
- uc = new IE4Start();
- break;
- case "www.google.com":
- uc = new GoogleHome();
- break;
- case "www.google.stanford.edu":
- uc = new GooglePrototype();
- break;
- case "www.12padams.com":
- uc = new _12padams1998();
- break;
- default:
- uc = new IE4NoPage();
- break;
- }
-
- addressbar.Text = url;
- uc.Dock = DockStyle.Fill;
-
- await Task.Delay(new Random().Next(500, 1500));
-
- browsingArea.Controls.Clear();
- browsingArea.Controls.Add(uc);
-
- if (url == "www.12padams.com") Story.Hack1.StartObjective();
- }
-
- private void TempIE4_Load(object sender, EventArgs e)
- {
- GoToPage("www.microsoft.com/windows/ie/default.htm");
- GoButton.Paint += (s, args) => Engine.Paintbrush.PaintClassicBorders(s, args, 2);
- }
-
- private void GoButton_Click(object sender, EventArgs e)
- {
- GoToPage(addressbar.Text);
- }
-
- private void _addressbar_KeyDown(object sender, KeyEventArgs e)
- {
- if (e.KeyCode == Keys.Enter)
- {
- GoButton_Click(this, new EventArgs());
- e.SuppressKeyPress = true;
- browsingArea.Focus();
- }
- }
- }
-}