aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-04-27 18:22:10 -0400
committerlempamo <[email protected]>2017-04-27 18:22:10 -0400
commitfdc90e45f760876cdc9677ce72389e97d4aa35d9 (patch)
tree2fb11de5b0a20fe37c17795edff61a7227253b83 /TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs
parente21ca9fd83e951edc98e5f8c00516db42a74914a (diff)
downloadhistacom2-fdc90e45f760876cdc9677ce72389e97d4aa35d9.tar.gz
histacom2-fdc90e45f760876cdc9677ce72389e97d4aa35d9.tar.bz2
histacom2-fdc90e45f760876cdc9677ce72389e97d4aa35d9.zip
html ie revamp works!
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs21
1 files changed, 12 insertions, 9 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs
index 8e85c94..cda8f94 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicIE4.cs
@@ -13,6 +13,8 @@ namespace TimeHACK.OS.Win95.Win95Apps
public List<string> browsinghistory = new List<string>();
public int historylocation = 0;
+ public HtmlDocument currentsite;
+
public WinClassicIE4()
{
InitializeComponent();
@@ -24,8 +26,9 @@ namespace TimeHACK.OS.Win95.Win95Apps
hidePrograms();
browsinghistory.Add("www.microsoft.com/internetexplorer4/welcome");
for (int i = 0; i < 99; i++) browsinghistory.Add(null);
- welcomeinternetscreen.Show();
- welcomeinternetscreen.Dock = DockStyle.Fill;
+ webBrowser1.DocumentText = ((string)resources.GetObject("ie4start"));
+ webBrowser1.Document.GetElementById("padams").Click += new HtmlElementEventHandler(LinkLabel16_LinkClicked);
+ webBrowser1.Show();
foreach (ToolStripMenuItem item in MenuStrip3.Items) item.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
foreach (Control ctrl in Panel1.Controls) ctrl.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
}
@@ -54,7 +57,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
goToSite("www.google.com", false);
}
- private void LinkLabel16_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
+ private void LinkLabel16_LinkClicked(object sender, HtmlElementEventArgs e)
{
goToSite("www.12padams.com", false);
}
@@ -112,13 +115,13 @@ namespace TimeHACK.OS.Win95.Win95Apps
break;
case "www.12padams.com":
hidePrograms();
- padamsmain.Dock = DockStyle.Fill;
- padamsmain.Show();
+ webBrowser1.Url = new Uri(@"pack://application:,,,/Resources/IE4/padams.html", UriKind.RelativeOrAbsolute);
+ currentsite = webBrowser1.Document;
+ currentsite.GetElementById("wc_b").Click += new HtmlElementEventHandler(WCDownloadButton_Click);
break;
case "www.microsoft.com/internetexplorer4/welcome":
hidePrograms();
- welcomeinternetscreen.Dock = DockStyle.Fill;
- welcomeinternetscreen.Show();
+ webBrowser1.Url = new Uri(@"pack://application:,,,/Resources/IE4/ie4start.html", UriKind.RelativeOrAbsolute);
break;
case "www.???.com":
hidePrograms();
@@ -152,7 +155,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
}
addressbar.Text = url;
-
+ currentsite = webBrowser1.Document;
}
private void BackButton_Click(object sender, EventArgs e)
@@ -174,7 +177,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
goToSite("www.microsoft.com/internetexplorer4/welcome", false);
}
- private void WCDownloadButton_Click(object sender, EventArgs e)
+ private void WCDownloadButton_Click(object sender, HtmlElementEventArgs e)
{
WinClassicDownloader opendownload = new WinClassicDownloader();
WindowManager wm = new WindowManager();