aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs
diff options
context:
space:
mode:
authorJayXKanz666 <[email protected]>2017-07-12 01:41:59 +0200
committerJayXKanz666 <[email protected]>2017-07-12 01:41:59 +0200
commitc45c5c46cafef304016469ae4f6a49c11479fb6c (patch)
tree54d5c6764662220862bfb3b53ea6aa5061abca46 /TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs
parent40d36a0435f8b2158ea2a37556b3488b7fa88f60 (diff)
downloadhistacom2-c45c5c46cafef304016469ae4f6a49c11479fb6c.tar.gz
histacom2-c45c5c46cafef304016469ae4f6a49c11479fb6c.tar.bz2
histacom2-c45c5c46cafef304016469ae4f6a49c11479fb6c.zip
Added new IE4
-Changed the way IE works (TemIE4.cs) -Converted HTML websites to UserControls (/Win95Apps/IE4Sites)
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs53
1 files changed, 53 insertions, 0 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs b/TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs
new file mode 100644
index 0000000..8f5de0f
--- /dev/null
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/TempIE4.cs
@@ -0,0 +1,53 @@
+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 TempIE4 : UserControl
+ {
+ public static Panel browsingArea = new Panel();
+
+ public TempIE4()
+ {
+ InitializeComponent();
+ browsingArea = _browsingArea;
+ }
+
+ public static void GoToPage(string url)
+ {
+ UserControl uc = new UserControl();
+
+ switch (url)
+ {
+ case "www.google.com":
+ uc = new GoogleHome();
+ break;
+ case "www.google.stanford.edu":
+ uc = new GooglePrototype();
+ break;
+ }
+
+ uc.Dock = DockStyle.Fill;
+ browsingArea.Controls.Clear();
+ browsingArea.Controls.Add(uc);
+ }
+
+ private void TempIE4_Load(object sender, EventArgs e)
+ {
+ GoToPage("www.google.com");
+ }
+
+ private void GoButton_Click(object sender, EventArgs e)
+ {
+ GoToPage(addressbar.Text);
+ }
+ }
+}